What I\'m doing:
The solution that worked for me was to: Close the VS project In File Explorer, navigate to the project and delete the entire ".vs" folder Restart the project Run as "Debug" Works Apparently, it has something to do with the "applicationhost.config" file.
Enjoy!
Try this first if it was working and suddenly stopped:
I just Cleaned my solution, Then Re-Built it and finally hit F5 and it worked! So simple.
The issue may be because [√] Enabled SSL
was selected for your project (see the Debug
tab in the project settings window), but Visual Studio decides to be dumb and setup something like http://localhost:32396
. The reason it fails is because 1. it is not HTTPS
, and 2. the cert is not valid. To force it, you need to use a port in the range 44300-44398.
See https://stackoverflow.com/a/24957146/1236397
I had the same issue, i was able to solve it by changing the Port number.
Right click on the project and select properties
Go to the Debug section
Under Web Server Settings change App URL port [just increase by one :)]
I was able to toggle this error by changing a single thing. In my ASP.Net Core 1.0 RC2 Web Application project's launchSettings.json
file:
"iisSettings": {
"windowsAuthentication": false,
"anonymousAuthentication": true,
"iisExpress": {
"applicationUrl": "https://localhost:18177/",
"sslPort": 0
}
},
to
"iisSettings": {
"windowsAuthentication": false,
"anonymousAuthentication": true,
"iisExpress": {
"applicationUrl": "http://localhost:18177/",
"sslPort": 0
}
},
I had changed to https in an attempt to run the project using that protocol. Apparently this is not the place to make that change. I suspect it is creating multiple bindings on the same port, and IIS Express doesn't like that.