“Unable to launch the IIS Express Web server” error

前端 未结 25 2649
梦谈多话
梦谈多话 2020-11-30 02:48

I receive this error when trying to launch IIS Express from Visual Studio with a project that\'s configured to listen to an address other than localhost. Visual Studio free

相关标签:
25条回答
  • 2020-11-30 03:35

    I face this issue, All I did was go to the web project Properties -> Web -> In the ProjectUrl I clicked on the "Create Virtual Directory" and my issue was fixed.

    0 讨论(0)
  • 2020-11-30 03:37

    For me it was the applicationhost.config file in .vs folder in my project solution folder(.vs folder is hidden by default).So,I closed the project and delete the .vs folder (vs will recreate it again when you open the project) then reopen the project and run it.

    0 讨论(0)
  • 2020-11-30 03:38

    I had the same issue with my computer having loads of windows updates.

    Spent few hours trying to resolve the issue using above answers with no luck.

    In past we have different issues due to anti-virus which caused the application to be blocked by it, so thought to try by disabling it.

    0 讨论(0)
  • 2020-11-30 03:39

    At the start, Try to disable your firewall. It helped me. The Eset Smart Security 5 blocked it.

    0 讨论(0)
  • 2020-11-30 03:40

    Remove the default website from the <sites> </sites>

    <site name="WebSite1" id="1" serverAutoStart="true">
        <application path="/">
            <virtualDirectory path="/" physicalPath="%IIS_SITES_HOME%\WebSite1" />
        </application>
        <bindings>
            <binding protocol="http" bindingInformation=":8080:localhost" />
        </bindings>
    </site>
    

    and your own <site> </site>

    and run "C:\Program Files\IIS Express\iisexpress.exe"

    http://www.iis.net/learn/extensions/using-iis-express/running-iis-express-from-the-command-line

    0 讨论(0)
  • 2020-11-30 03:43

    So after trying all the solution, I just uninstall "One Drive" from my PC & the problem is resolved.

    N.B:

    • I was trying to run .net core web application.
    • Visual Studio 2017 version 15.9.5
    • Windows 10 Pro, 64 bit
    0 讨论(0)
提交回复
热议问题