ASP.NET 5 MVC: unable to connect to web server 'IIS Express'

后端 未结 30 1826
北恋
北恋 2020-12-12 13:28

What I\'m doing:

  • Opening Visual Studio Community 2015
  • File -> New -> Project
  • Under Visual C#: Web -> ASP.NET Web Application
  • Web App
相关标签:
30条回答
  • 2020-12-12 13:40

    I have solved it in a very simple way.

    By the following:

    1. Turn off Microsoft Visual Studio.
    2. Reopen it with "Run as administrator"

    Hope this helps you. :"))

    0 讨论(0)
  • 2020-12-12 13:43

    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:

    1. Delete YourSolutionFolder\\.vs\config\applicationhost.config file (note: .vs is a hidden folder)
    2. Open Visual Studio, right-click on web site > Properties > Debug tab > Web Server Settings > App URL - change port number.
    0 讨论(0)
  • 2020-12-12 13:43

    Run VisualStudio with administrator privilegies and run the project. Then close VisualStudio and all errors and run VisualStudio again with the normal user.

    This did it for me.

    Looks like that IIS has to write something to some config with admin privilegies (port 80 didn't work with normal user but port 6767 worked fine).

    0 讨论(0)
  • 2020-12-12 13:43

    delete bin and obj folders from the project folder and rebuild.

    0 讨论(0)
  • 2020-12-12 13:43

    Mine happens as soon as I add a new binding inside the applicationhost.config, running as administrator fixed the problem.

    0 讨论(0)
  • 2020-12-12 13:43

    I simply toggled on "Enable SSL". This solved my problem.

    1. Right click web project
    2. Debug tab
    3. Toggle Enable SSL "on" (if it is off, which was my case)
    0 讨论(0)
提交回复
热议问题