VS.Net 2005 unable to start debugging
I’ve started on a web project for a client using VS.Net 2005 and the .Net 2.0 framework. This is the first project that I am undertaking in this framework and I am catching a few little teething issues as I go. Some of them are obvious and some not so obvious.
The most un-obvious one that i have come accross so far was related to being able to debug the project. I am set up working on my laptop which has both VS.Net 2003 and VS.Net 2005 installed. I’d had the “unable to start debugging on the webserver” errors before in VS.Net 2003 and am fairly comfortable with what has to be done to correct the issue. When I received that error this evening with VS.Net 2005 I followed the same path to try resolving it.
No good. Doesn’t work.
After chasing links in circles through the online help I found a link to this knowledge base article that gives instructions on editing the permissions on the metabase. Thankfully for my particular problem it was easy. At the top of the article it says:
Note If you are using ASP.Net 2.0 and you have to grant metabase permissions to a Windows user account, run the ASP.NET IIS Registration Tool command with the -ga option instead of using the tool that is shown here.
A quick check in “Local Users and Groups” on my laptop showed that the windows user account that ASP.NET runs under is ASPNET.
I ran
aspnet_regiis -ga ASPNET
and was back in business. Debugging is now working, pitty that my code is not - but that is another tale altogether.