Visual-studio – Visual Studio “Unable to start debugging on the web server. The web server did not respond in a timely manner.”

asp.netdebuggingiisvisual studiovisual-studio-2008

I get the following error pretty regularly when compiling in Visual Studio and running my web application:

"Unable to start debugging on the web server. The web server did not respond in a timely manner. This may be because another debugger is already attached to the web server."

Normally this is after having debug the application once already. From the command line I run "iisreset /restart" and it fixes the problem.

How do I prevent this from happening in the first place?

Best Answer

The solution that worked for me:

  1. Open Command Prompt (Run as Administrator)

  2. Write iisreset /restart

  3. Now, go back to your VS and debug. It will debug your solution.

It worked for Visual Studio 2013 and 2015 too in my case.