Microsoft MVP Logo

The following steps helps me resolve a nasty VS.NET debugging issue I was having.  When you launch the VS .NET debugger automatically by pressing the PLAY button or F5, debugging works just fine.  However, if you try to manually attach to a process (like w3wp.exe in Windows Server 2003), the debugger is never able to load the debug symbols and it won't stop on your breakpoints.  I finally threw in the towel and used one of my MSDN Universal subscription PSS tickets to resove this issue:

Go to Start -> Run -> Type "dcomcnfg" and press Enter.

1. On the Default Properties Tab
   a. Make sure that Enable Distributed COM on this computer is checked
   b. Set default authorization level to Connect
   c. Set default impersonation level to Identify
  
2. On the Default Security Tab
   a. Edit Default for the Default Access Permissions
   b. Add the following accounts if they are not present
      1. MachineName\Administrators
      2. MachineName\Debugger Users
      3. System
   c. Edit Default for the Default Launch Permissions
   d. Add the following accounts if they are not present
      1. MachineName\Administrators
      2. MachineName\Debugger Users
      3. System
 
3. On the Applications Tab, locate and select the Just-In-Time Debugging Handler and CLR Remote Host application
   a. On the General Tab, make sure that the Authentication level is set to connect
   b. On the Security Tab, select Use Custom access permissions and select the Edit button
   c. Add the following accounts if they are not present
      1. MachineName\Administrators
      2. MachineName\Debugger Users
      3. System
   d. On the Security Tab, select Use Custom launch permissions and sleet the Edit button
   e. Add the following accounts if they are not present
      1. MachineName\Administrators
      2. MachineName\Debugger Users
      3. System
   f. On the Identity Tab, make sure that the interactive user is selected
   g. Click OK until you are back to the Distributed COM Configuration Properties dialog.

4. On the Applications Tab, locate and select the Machine Debug Manager application
   a. On the General Tab, make sure that the Authentication level is set to connect
   b. On the Security Tab, select Use Custom access permissions and sleet the Edit button
   c. Add the following accounts if they are not present
      1. MachineName\Administrators
      2. MachineName\Debugger Users
      3. System
   d. On the Security Tab, select Use Custom launch permissions and sleet the Edit button
   e. Add the following accounts if they are not present
      1. MachineName\Administrators
      2. MachineName\Debugger Users
      3. System
   f. On the Identity Tab, make sure that The System Account (services only) is selected
   g. Click OK until you are back to the Distributed COM Configuration Properties dialog.

Local Security Policy Settings
1. Open the Local Security Policy Settings from (Control Panel -> Administrative Tools -> Local Security Policy)
2. From the right-hand side select expand Local Policies
3. Select User Rights Assignments
4. Double click the Debug Programs privilege and add the Debugger Users group

Give rights on the following folders :
1. C:\WINNT\Temp
   \Developers group -> Full control
2. C:\WINNT\Microsoft.NET\Framework\v1.1.4322\CONFIG
   \Developers group -> Read&Execute, List Folder Contents, Read
3. C:\WINNT\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files
   \Developers group -> Full control
4. C:\Inetpub
   \Developers group -> Read&Execute, List Folder Contents, Read (added)
5. C:\Inetpub\wwwroot
   \Developers group -> Full control
6. C:\Inetpub\wwwroot\
   \Developers group -> Read&Execute, List Folder Contents, Read (added)

1. Open the machine.config file from the C:\WINNT\Microsoft.NET\Framework\v1.1.4322\CONFIG folder
2. Press CTRL-F to open the Find dialog and type 3. Change the userName attribute to be \
4. Change the password attribute to be the users password.

Comments powered by Disqus