Unable to launch the IIS Express Web server, Failed to register URL, Access is denied

后端 未结 30 2218
刺人心
刺人心 2020-12-07 08:11

Some web projects are causing me problems while others work fine. I decided to focus on one of the problematic ones. I\'m using Visual Studio 2013 on Windows 7. I think I\'m

相关标签:
30条回答
  • 2020-12-07 08:41

    I had this issue with JetBrains Rider, specifically for port 80 and 90 bit it was working with other ports as well as visual studio.

    after running as admin this resolved the issue.

    0 讨论(0)
  • 2020-12-07 08:43

    I just had a similar issue. I'm not totally sure how to describe the actual fault but it seems like the hostname in the reservation is incorrect. Try this in an elevated command prompt...

    netsh http delete urlacl url=http://localhost:62940/

    ... then ...

    netsh http add urlacl url=http://*:62940/ user=everyone

    and restart your site. It should work.

    0 讨论(0)
  • 2020-12-07 08:44

    try (as elevated administrator)

    netsh http delete urlacl url=http://*:62940/
    
    0 讨论(0)
  • 2020-12-07 08:44

    Sometimes this error my be another Visual Studio version running on the same machine.

    0 讨论(0)
  • 2020-12-07 08:45

    When using Visual Studio 2015 the solution can be a bit different to the previous answers. VS2015 creates a hidden folder .vs under the same folder as your solution file. Under this is a config folder containing applicationhost.config. Deleting this file (or the entire .vs folder) then starting VS2015 to recreate it can fix this error.

    0 讨论(0)
  • 2020-12-07 08:46

    Yeah, I agree, top answers are really pro solutions,

    here is one for intermediates,

    Solutions Explorer

    Right click on project select Unload project

    Again Right click and select Edit ProjectName.csproj

    remove these 3 lines

    <DevelopmentServerPort>0</DevelopmentServerPort>
    <DevelopmentServerVPath>/</DevelopmentServerVPath>
    <IISUrl>http://localhost:62940/</IISUrl>
    

    Save and reload the project and you are good to go

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