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:46

    After all of the steps listed here failed for me I got it working by running VS2015 as administrator.

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

    My issue turned out to be that I had SSL Enabled on the project settings. I simply disabled this because I did not require SSL for running the project locally.

    In Visual Studio 2015:

    • Select the project in the Solution Explorer.
    • In the Properties window set SSL Enabled to False.
    • I was able to run the project.

    In my situation I was getting an error about port 443 in use because this was the port set on the SSL URL for the project.

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

    This happened with me when I was trying to access my site from a remote location:

    At first, applicationhost.config (VS2015) contained the standard:

    <binding protocol="http" bindingInformation="*:64376:localhost" />
    

    In order to access my site from a remote location within the network, I added (step 1):

    <binding protocol="http" bindingInformation="*:64376:192.168.10.132" />
    

    Then, I entered into CMD with Admin rights (step 2):

    netsh http add urlacl url=http://*:64376/ user=Everyone
    

    As step 3, I added it a rule to the firewall.

    netsh advfirewall firewall add rule name=”IISExpressWeb” dir=in protocol=tcp localport=64376 profile=private,domain remoteip=localsubnet action=allow
    

    Then, I got this error when trying to run the solution again.

    Solution: I seemed to have done everything right, but it did not work until I ran netsh also for the existing localhost rule:

    netsh http add urlacl url=http://localhost:64376/ user=Everyone
    

    Now, it works again.

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

    I solved the error by changing the port for the project.

    I did the following steps:

    1 - Right click on the project.
    2 - Go to properties.
    3 - Go to Server tab.
    4 - On tab section, change the project URL for other port, like 8080 or 3000.

    Good luck!

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

    This happened to me on Windows 7 and VS 2013 while viewing a project on the browser after build. I only had to close the browser "Chrome" then made sure that the port is not in use in my Network Activities using some utility (Kaspersky) then tried again and worked without any problems.

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

    Got this error as well lately. Tried all the above fixes, but none worked.

    To disable it, type services.msc in command prompt, then right click and disable Internet Connection Sharing. I edited the properties of it as well to disable at startup. Mine looks like so now: services capture screenshot.

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