Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio "Unable to start debugging on the web server. The web server did not respond in a timely manner."

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?

like image 336
y0mbo Avatar asked Aug 05 '08 16:08

y0mbo


People also ask

How do I fix unable to start debugging on web server?

Open your project properties and make sure that the project is configured to connect to the correct Web server and launch URL. (Open Properties > Web > Servers or Properties > Debug depending on your project type.) If that does not work or you are debugging remotely, follow steps in Check your IIS Configuration.

How do I enable debugging in Visual Studio?

In the Visual Studio toolbar, make sure the configuration is set to Debug. To start debugging, select the profile name in the toolbar, such as <project profile name>, IIS Express, or <IIS profile name> in the toolbar, select Start Debugging from the Debug menu, or press F5.


1 Answers

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.

like image 113
Alberto Montellano Avatar answered Sep 16 '22 11:09

Alberto Montellano