This step-by-step article describes how to set up
multiple-user debugging of Microsoft Visual Studio .NET applications in
semi-isolated mode under Internet Information Services (IIS) version
6.0.
To build a Web application project on the remote computer,
and then to debug the Web application project, follow these steps on the
computers that the debugger users use:
On the first computer (DebugUserComputer1), click
Start, point to All Programs, and then click
Microsoft Visual Studio .NET.
On the File menu, point to
New, and then click Project.
In the New Project dialog box, click
Visual C# Projects under Project
Types.
Under Templates, click ASP.NET
Web Application.
In the Location text box, type the URL of
the remote server (for example, type http://commonWebServer/DebugApp1). Visual Studio .NET creates the solution.
Use Debuguser1 credentials to host the application on common Web server. (See
the "Create User Accounts" section.)
Open WebForm1.aspx in Designer.
Double-click WebForm1.aspx to open the
Code Editor window.
Paste the following sample code in the
Page_Load event:
Response.Write("This is debug test");
Repeat steps 1 through 8 to create another ASP.NET Web
application project. Name the Web application project
DebugApp2 on the DebugUserComputer2, and use DebugUser2
credentials to host the application on the common Web server. (See the "Create
User Accounts" section.)
An application pool is a configuration that links one or more
applications to a set of one or more worker processes. Because applications in
an application pool are separated by worker process boundaries, an application
in one application pool is not affected by problems caused by applications in
other application pools.
To create a new application pool, you must
be a member of the Administrators group on the local computer, or you must
delegate the appropriate authority. As a best practice, use an account that is
not in the Administrators group to log on to your computer, and then use the
Run as command to run IIS Manager as an
administrator. At a command prompt, type the following command:
Configure a Worker Process Identity for an Application Pool
Click Start, point to
Programs, and then click Control Panel.
Double-click Administrative Tools, and
then double-click Internet Information Services.
Double-click Application
Pools.
Right-click AppPool1, and then click
Properties.
Click the Identity tab.
Click Configurable.
Click Browse, and then type the object
name in the text box. Type the account name, DebugUser1
where you want your worker process to run, and then click
OK.
In the Password text box, type the
password that is associated with this account.
Click OK.
Repeat steps 1 through 9 to configure
DebugUser2 to AppPool2.
The remote computer and the local computer must be in the
same domain when you add the user to the Debugger Users group.
You cannot enable remote debugging on two computers that
run Microsoft Windows XP and that are part of a workgroup instead of part of a
domain.
The Web.config file for the ASP.NET application must not
contain any errors, and the compilation element must have a Debug attribute that is set to true.
You must install Visual Studio .NET remote debugging
components on the remote computer.
In the Internet Options dialog box, set
the security for this site to allow Integrated Windows
authentication.
You can also set the security setting so that the site
permits anonymous access. You must use a computer name, not an IP address, to
refer to the remote computer.