问题
After installing Update 2 for Visual Studio 2015, when trying to debug any web project I keep getting the error message: "The underlying connection was closed: An unexpected error occurred on a send".
回答1:
Somehow after installing this update, IIS 10 just lost the assignment to the SSL certificate that I had set up for HTTPS. The error message was gone after reassigning the certificate following these steps:
In Internet Information Services (IIS) Manager, in the Connections pane, expand the name of the server on which the certificate was installed. Then expand Sites and click the site you want to secure using the SSL certificate.
In the Actions menu (right pane), click Bindings.
In the Site Bindings window, click Add.
In the Add Site Binding window, select your SSL certificate in the drop-down list then click OK.
After solving this, when trying to debug, the following error message started to appear:
"Config Error: This configuration section cannot be used at this path".
This problem was solved with this answer.
来源:https://stackoverflow.com/questions/49132308/the-underlying-connection-was-closed-an-unexpected-error-occurred-on-a-send-a