Visual Studio: Unable to start debugging on the web server. The underlying connection was closed Options

codeling Posts: 1054 Points: 4431
Posted: Wednesday, September 27, 2017 10:32:25 AM

I cloned a VHD from my colleague's VHD. Then I got the following error when I tried to debug an ASP.NET application.

Unable to start debugging on the web server. The underlying connection was closed: An unexpected error occurred on a send.

 

 


codeling Posts: 1054 Points: 4431
Posted: Wednesday, September 27, 2017 11:07:36 AM

The reason for the above problem in my case is that my Web application is using HTTPS on localhost, but the self signed certificate biinding to HTTPs is from my old VHD and in wrong domain.

To fix the problem I have to recreate a self signed certificate and add it to the binding of your locally hosted site.


codeling Posts: 1054 Points: 4431
Posted: Wednesday, September 27, 2017 11:11:57 AM

To create a self signed certificate from IIS, read this post for details.


codeling Posts: 1054 Points: 4431
Posted: Wednesday, September 27, 2017 3:55:34 PM

To setup IIS with HTTPs binding, read this post for detail.

Users browsing this topic
Guest