web analytics

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

Options

codeling 1595 - 6639
@2017-09-27 10:32:25

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.

 

 

@2017-09-27 11:07:36

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.

@2017-09-27 11:11:57

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

@2017-09-27 15:55:34

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

Comments

You must Sign In to comment on this topic.


© 2024 Digcode.com