Dela via


How to: Debug Web Applications on a Remote Server

This topic applies to:

Edition

Visual Basic

C#

C++

Web Developer

Express

Topic does not apply Topic does not apply Topic does not apply Topic does not apply

Standard

Topic applies Topic applies Topic applies Topic applies

Pro and Team

Topic applies Topic applies Topic applies Topic applies

Table legend:

Topic applies

Applies

Topic does not apply

Does not apply

Topic applies but command hidden by default

Command or commands hidden by default.

With the Visual Studio debugger, you can debug a Web application transparently on the local computer or a remote server. This means that the debugger functions the same way and allows you to use the same features on either computer. For remote debugging to work correctly, however, there are some prerequisites.

  • Visual Studio remote debugging components must be installed on the server you want to debug. For more information, see Setting Up Remote Debugging.

  • By default, the ASP.NET worker process runs as an ASPNET user process. As a result, you must have Administrator privileges on the computer where ASP.NET runs to debug it. The name of the ASP.NET worker process varies by debug scenario and version of IIS. For more information, see How to: Find the Name of the ASP.NET Process.

  • In Visual C++, the project must be set up to connect by using DCOM instead of TCP/IP. To set this property, follow these steps:

To enable Visual C++ projects to connect through DCOM

  1. Open the <Project>Property Pages dialog box.

  2. Open the Configuration Properties node if not already opened.

  3. Select the Debugging node under Configuration Properties.

  4. Choose Remote Windows Debugger under Debugger to launch.

  5. Choose Remote with Windows authentication under Connection.

    For more information, see Project Settings for a C or C++ Debug Configuration.

See Also

Reference

ASP.NET Debugging: System Requirements

Other Resources

Debugging ASP.NET and AJAX Applications