ASP.NET 5 MVC: unable to connect to web server 'IIS Express'
Solution 1:
After installing Update 2 for Visual Studio 2015 I started getting the same error. I tried everything above with no luck. However, I found a solution that works for me:
- Delete
YourSolutionFolder\\.vs\config\applicationhost.config
file (note: .vs is a hidden folder) - Open Visual Studio, right-click on web site > Properties > Debug tab > Web Server Settings > App URL - change port number.
If you have IIS configured to use the same port, (stop the application / use different port) and try again.
Solution 2:
Exit VS and delete the (project)\.vs\applicationhost.config
file. Restart VS. It should start working.
Solution 3:
Try using a different port. I just set up a new Core 1.0 RC1 project and got the same error.
- Right click web project
- Debug tab
- Toggle Enable SSL off and on again, it should generate a new random port
- Copy the SSL URL and paste into Launch URL box
- Run the project
Worked for me (TM).
Answer from: https://stackoverflow.com/a/28650554/134761