Thursday, February 26, 2009

Going crazy with "unable to start debugging on web server" in Visual Studio 2005?

So ever tried to setup visual studio 2005 on a new machine and all you want to do is just debug a application in IIS? I recently attemped doing this and got the friendly error message: unable to start debugging on web server. the web server is not configured correctly vs2005 Does not help does it? The message too generic and the thing(s) that caused it unknown So after googling for over 3 hrs and trying number of proposed solution, I came across a forum where Chandan Gowda had the right solution for it. Here is the post
  1. iisreset -stop
  2. Goto C:\Windows\Microsoft.NET\Framework\v2.0.50727
  3. aspnet_regiis -ua
  4. aspnet regiis -i
  5. aspnet_regiis -ga machinename\aspnet
  6. goto C:\Windows\Microsoft.NET\Framework\v1.1.4322
  7. aspnet_regiis -i
  8. iisreset -start

  • Uninstall all versions of .Net frameworks using aspnet_regiis -ua
  • Re register the version of .Net framework using aspnet_regiis -i
  • Add machine's aspnet user to the web operator group using aspnet_regiis -ga machinename\aspnet
  • And you are done.
The Problem: I installed IIS after installing Visual Studio. I did run aspnet_regiis -i to re register .net but did not add the aspnet user to the web operator group.

Always Remember: Make sure IIS is installed before you install any version of Visual Studio Hope this information will save someones time and help reduce the frustration which I went through.

No comments:

Post a Comment