Visual Studio IIS Express hangs on launch, but IIS local works, why?

前端 未结 9 461
余生分开走
余生分开走 2020-12-25 11:12

I run Visual studio 2015 as administrator, start a new project, ASP.NET application, Empty 4.5.2 and then just add a simple html page. When I try to launch using IIS Expres

相关标签:
9条回答
  • 2020-12-25 11:49

    Just right click on HtmlPage1.html in solution explorer and click Set As Start Page. After that run project again.

    0 讨论(0)
  • 2020-12-25 11:50

    I think IIS is disabled in your system. Please follow the below steps:

    1. Go to Control Panel
    2. Open Program and Features
    3. On the left side, you will find 'Turn Windows features On or Off', click on it.
    4. Check that IIS is checked with all the subfeatures. I am attaching a screenshot below for your reference.

    1. Make sure all the checkboxes should be ticked.
    2. Now restart your system.

    I think this will solve your issue.

    0 讨论(0)
  • 2020-12-25 11:52

    You could try to change the port which IIS Express is using by doing the following:

    1. Right click you web project and click in properties

    2. In the web menu, change the project url and specify a custom port, ie: 56000

    1. Save your changes and see if that works!

    You can make sure that no other processes are using the port you chose by running the following command:

    netstat -na | find "your port number"
    

    ie:

    netstat -na | find "56000"
    

    If the port is free, nothing will be outputted to the console.

    0 讨论(0)
提交回复
热议问题