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?"
By submitting your personal information, you agree that TechTarget and its partners may contact you regarding relevant content, products and special offers.
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.
Dig Deeper on Win Development Resources
Related Q&A from Daniel Cazzulino
Here Daniel Cazzulino explains how to load a DSL (domain specific language) domain model instance file programmatically. This requires the .NET type ... Continue Reading
Here we offer a glimpse at 12 of .NET development expert Danny Cazzulino's top ASP.NET questions and answers. Continue Reading
C# developers should NOT be modifying InitializeComponent method in the code-behind (or any of the variable definitions) by hand. Continue Reading
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.