Bernice
Bernice

Reputation: 2592

Running ASP.net application on IIS - timeout error

I was running my asp.net application on localhost in the internal IIS for Visual Studio and for Testing purposes I was trying to host my website on my LAN at home. I obviously had to switch to use the custom IIS web server. I followed all the steps to do this i.e. I turned on IIS from the windows features in control panel and added my web application to IIS and configured VS settings to use that server and gave it a start URL.

However when I run my project I am getting an error message:

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.

What is the cause of this error and how can I solve it?

Thanks

Upvotes: 0

Views: 2023

Answers (2)

Alex
Alex

Reputation: 9720

I have the same problem and I solved it by reseting iis from cmd => "iisreset"

Upvotes: 1

Aristos
Aristos

Reputation: 66641

One workaround is to make an empty page and you call the debugger from it as

System.Diagnostics.Debugger.Launch();

To solve it and make possible to start the debugger from the VS you must configure the start up page to see the local IIS on the properties of your project. Also I have notice that if you do not have default browser the IE it may also fail. So for me, to move on, call the debugger from the page.

Upvotes: 1

Related Questions