Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

We are developing a SOAP-based WCF Service in Visual Studio:

enter image description here

enter image description here

The virtual directory did get created. However, when I try to run the code in Visual Studio 2015 (F5) Debug mode, it give me the following error:

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

The aforementioned error started showing up when our company changed their Windows Domain name. How I can resolve the problem?

Here are the technologies used in our development environment:

  • Windows Server 2012 R2 Standard 64-bit Operating System, x64-based processor

  • Microsoft Visual Studio Enterprise 2015 Version 14.0.25431.01 Update 3

  • Internet Information Services ( Version 8.5.9600.16384 )

like image 324
crazyTech Avatar asked Jun 20 '17 14:06

crazyTech


2 Answers

I needed to make a Fake Self-Signed Certificate, and associate it with the https 443 port of the Web site as the picture below shows: enter image description here

like image 161
crazyTech Avatar answered Sep 19 '22 14:09

crazyTech


1- Select your site in IIS.
2- Go to top-right and click on bindings.
3- Select your application and click edit.
4- Select a SSL certificate, if it doesn't exist then you may need to create
it.

like image 31
Anmol Rastogi Avatar answered Sep 21 '22 14:09

Anmol Rastogi