web analytics
Visual Studio: Unable to start debugging on the web server. The underlying connection was closed Options
codeling
Posted: Wednesday, September 27, 2017 10:32:25 AM

Rank:Advanced Member
Groups: Member
Joined: 12/11/2015
Posts: 892
Points: 3738

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.

 

 

Sponsor
Posted: Wednesday, September 27, 2017 10:32:25 AM
codeling
Posted: Wednesday, September 27, 2017 11:07:36 AM

Rank:Advanced Member
Groups: Member
Joined: 12/11/2015
Posts: 892
Points: 3738

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
Posted: Wednesday, September 27, 2017 11:11:57 AM

Rank:Advanced Member
Groups: Member
Joined: 12/11/2015
Posts: 892
Points: 3738

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

codeling
Posted: Wednesday, September 27, 2017 3:55:34 PM

Rank:Advanced Member
Groups: Member
Joined: 12/11/2015
Posts: 892
Points: 3738

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

Users browsing this topic
Guest

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.


© 2017 Digcode.com. All rights reserved.