Last post Oct 18, 2007 03:56 AM by Benson Yu - MSFT
Oct 16, 2007 09:08 PM|Jason.potts|LINK
Hi, I have a Developer thats not apart of the IT department that run VS 2003. He has broken our network usage agreement and we have had to remove local admin rights. Yes its been a pain...... He is now having issues debugging with in VS 2003 - "Error while
trying to run project: Unable to start debugging on the web server. Access is denied" I have added him to the local VS Developers\Debuggers group on his local machine and also pushed a GPO out to allow his to debug on his local machine, but he still receives
the above error. From reading the issues is with the ASP.NET account becuase the CLR debugging service has security restrictions to allow only admin or the same user to debug managed process? Is this a problem with VS 2003 security, needing him to be a local
admin, if so I have problem as he is not allowed to have local admin rights? Please help Thanks in Advance. Jason Potts
Oct 18, 2007 03:56 AM|Benson Yu - MSFT|LINK
The cause of this issue: "Error while trying to run project: Unable to start debugging on the web server. Access is denied" is the non-administrative user cannot attach to the asp.net process which running under other account. Only administrative user can
attach to other user's process. For example, the current non-admin login windows account is “testuser”, his Visual Studio cannot debug ASP.NET web application because the asp.net is running under “ASPNET” or "Network Service".
To fix this issue, we should change the asp.net running account by changing the processModel section in machine.config (solution for IIS 5.x). Or change the identity of that web appolication's application pool (solution for IIS 6.0).
For more information and the detailed steps, please refer to the following link:
Developing Software in Visual Studio .NET with Non-Administrative Privileges
In addition, please read the following article at your convenience. Although it is not directly relate to your issue, I hope it will be helpful to you somewhere.
Using the Visual Studio .NET 2003 Debugger with ASP.NET Applications