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

后端 未结 30 2267
刺人心
刺人心 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: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:

    
    

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

    
    

    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.

提交回复
热议问题