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

后端 未结 30 2110
北恋
北恋 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 14:00

    I had this same issue, but the way I fixed it was by going to the applicationhost.config and remove a port which was not added by me (IIS Express I would guess) which placed my specific port site on another port.

    Here is what the config file had for my bindings:

    
          
          
    
    

    I removed the first bindings item as the only port I wanted was 44360. My config file now looks like this:

    
          
    
    

    Now I don't see the error when I debug.

    I also noticed my second API in my project had port 80 also assigned to it, I removed that as well.

提交回复
热议问题