Ask the Expert

VS.NET won't let me debug my ASP.NET application

I am developing ASP.NET application using VS.NET IDE. When I start the application, I am not able to debug the application and get following message: "Error while trying to run project: Unable to start debugging on the Web server. Access is denied. Would like to disable this option in future?"

I have tried all tricks like reinstalled OS, IIS and VS.NET, added myself in Control Panel -> Administrative Tools -> Computer Management -> Local Users and Groups -> Groups -> Debugger Users, VS Developers and Users but none of these tricks worked. Please help me figure out how to debug. Thanks in advance.
VS.NET needs to authenticate using Windows Integrated Authentication against the Web Application in order to start debugging this way. As a workaround (and even a better way, IMO), you can use the Debug -> Processes (with Show system proceses checked) menu, and attach to the aspnet_wp.exe process, which is the one that runs ASP.NET. You can set your breakpoints, execute step-by-step, and everything as usual. Beware that at least one Web application must be previously started to successfully attach to the process.

This was first published in November 2003

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: