crazyTech
crazyTech

Reputation: 1477

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:

Upvotes: 7

Views: 7822

Answers (3)

Raman Goyal
Raman Goyal

Reputation: 1

For me it worked after windows update.

  1. Go to settings then update & Security.
  2. Click on check online for updates from Microsoft update -> It will start downloading the updates and will installing automatically.
  3. once installation and downloading completed it will ask for restart then go for restart the system and then try.

Upvotes: 0

Anmol Rastogi
Anmol Rastogi

Reputation: 819

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.

Upvotes: 10

crazyTech
crazyTech

Reputation: 1477

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

Upvotes: 14

Related Questions