“Unable to launch the IIS Express Web server” error

前端 未结 25 2648
梦谈多话
梦谈多话 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:17

    If using VS2015, close the solution, delete the following file, then re-open the solution.

    <<path_to_solution_folder>>\.vs\config\applicationhost.config
    

    note the .vs folder may be hidden

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

    I fixed it with the following steps:

    • Close Visual Studio
    • Run netsh http show urlacl and see if your application http address/port is listed.
    • Run netsh http delete urlacl url=[ADDRESS] replacing [ADDRESS] with the Reserved URL shown by the previous command. For example http://+:17560/
    • Run VS again (as Admin) then go to web project's Properties -> Web then click on Create Virtual Directory button.
    • Now you should be able to run the web project.
    0 讨论(0)
  • 2020-11-30 03:17

    Delete IISExpress folder in my My Documents folder to ensure the default settings or restore the same to previous version when it was working fine.

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

    open command prompt as administrator then execute this command :

    netsh http show urlacl
    

    you will see the url you have added before now you should execute this command :

    netsh http delete urlacl url=http://+:36899/ user=Everyone
    

    please check the url from list when using :

    (netsh http show urlacl)

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

    In VS 2013 I saw this error after setting up Google Docs synchronization on My Documents. Updated permissions to not be read-only and problem solved.

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

    I had exactly the same issue. Tried everything but finally one trick worked.

    1. Delete folder IISExpress from "My Documents"
    2. Load your project again, it will create IISExpress folder again with updated configuration
    3. Check IISExpress folder has sufficient permissions to read-write the configuration file
    4. Load project again and Run IISExpress. It should work.
    0 讨论(0)
提交回复
热议问题