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

    In Visual Studio 2015:

    • Find your startup page in your project (eg: mypage.aspx) , and right click on it.
    • Click on Set as Start Page.
    • Right click on the project.
    • Click on Properties.
    • Click on the Web Tab on the left.
    • In Project URL, enter a different port, such as: http://localhost:1234/
    • In Start Action, select Specific Page: mypage.aspx or select Specific URL: http://localhost:1234/mypage.aspx?myparam=xxx
    0 讨论(0)
  • 2020-12-07 08:56

    In Visual Studio 2019 Just remove Debug profile and create new one Do the Trick

    1. Go to Project properties In debug tab
    2. try first Changing ports Web Server Settings
    3. if Changing ports not worked then Remove Debug Profile and Create new One-Warning Make Sure You Know Previous Settings
    0 讨论(0)
  • 2020-12-07 08:56

    Looks like everybody has own problem Just sharing what I did to fix this problem in VS2015 (Windows 8.1), my solution has 6 web sites (not web apps)

    1. Open your solution file *.sln
    2. Change in your solution file string VWDPort = "34781" (make it unique in your solution if you have more that 1 web site, I made +2) in notepad.

    See sample solution file ProjectSection(WebsiteProperties):

    Project("{E24C65DC-7377-472B-9ABA-BC803B73C61A}") = "BOSTONBEANCOFFEE.COM", "Source_WebOfficeV4\BOSTONBEANCOFFEE.COM", "{5106A8F5-401B-4907-981C-F37784DC4E9D}"
    ProjectSection(WebsiteProperties) = preProject
        SccProjectName = ""$/PrismRMSystem/VS2012/WebOfficeV4.root/WebOfficeV4", IPYHAAAA"
        SccAuxPath = ""
        SccLocalPath = "..\.."
        SccProvider = "MSSCCI:Microsoft Visual SourceSafe"
        TargetFrameworkMoniker = ".NETFramework,Version%3Dv4.0"
        ProjectReferences = "{04e527c3-bac6-4082-9d39-aad8771b368e}|YBTools.dll;{5d52eaec-42fb-4313-83b8-69e2f55ebf14}|AuthorizeNet.dll;{d8408f53-8f1e-4a71-8b05-76023b09b716}|AuthorizeNet.Helpers.dll;{77ebd08a-de0f-4793-b436-fad6980863e6}|WEBCUSTCONTROLS.dll;"
        Debug.AspNetCompiler.VirtualPath = "/BOSTONBEANCOFFEE.COM"
        Debug.AspNetCompiler.PhysicalPath = "Source_WebOfficeV4\BOSTONBEANCOFFEE.COM\"
        Debug.AspNetCompiler.TargetPath = "PrecompiledWeb\BOSTONBEANCOFFEE.COM\"
        Debug.AspNetCompiler.Updateable = "true"
        Debug.AspNetCompiler.ForceOverwrite = "true"
        Debug.AspNetCompiler.KeyFile = "Key\StrongKey.snk"
        Debug.AspNetCompiler.DelaySign = "false"
        Debug.AspNetCompiler.AllowPartiallyTrustedCallers = "false"
        Debug.AspNetCompiler.FixedNames = "true"
        Debug.AspNetCompiler.Debug = "True"
        Release.AspNetCompiler.VirtualPath = "/BOSTONBEANCOFFEE.COM"
        Release.AspNetCompiler.PhysicalPath = "Source_WebOfficeV4\BOSTONBEANCOFFEE.COM\"
        Release.AspNetCompiler.TargetPath = "PrecompiledWeb\BOSTONBEANCOFFEE.COM\"
        Release.AspNetCompiler.Updateable = "true"
        Release.AspNetCompiler.ForceOverwrite = "true"
        Release.AspNetCompiler.KeyFile = "Key\StrongKey.snk"
        Release.AspNetCompiler.DelaySign = "false"
        Release.AspNetCompiler.AllowPartiallyTrustedCallers = "false"
        Release.AspNetCompiler.FixedNames = "true"
        Release.AspNetCompiler.Debug = "False"      
        VWDPort = "34781"
        SlnRelativePath = "Source_WebOfficeV4\BOSTONBEANCOFFEE.COM\"
    EndProjectSection
    

    In my case, I tried to change URL from project properties, restart VS, reboot computer, nothing helped me only this SLN file manipulation fixed my problem.

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

    What worked for me is disabling all other network adapters, except the one I'm currently using. The event in event viewer was: Unable to bind to the underlying transport for [::]:50064. The IP Listen-Only list may contain a reference to an interface which may not exist on this machine. The data field contains the error number.

    Since I have VMware Workstation, Docker (and thus Hyper V) some VPN clients, I have a lot of network interfaces.

    0 讨论(0)
  • 2020-12-07 09:00

    The error can be solved if you just restart Visual Studio. It has the same effect as restarting the Microsoft.VisualStudio.Web.Host.exe*32 process.

    0 讨论(0)
  • 2020-12-07 09:00

    Got the same issue where IIS express complained about http://localhost:50418/ and none of above solutions worked for me..

    Went to projektFolder --> .vs --> config --> applicationhost.xml

    In the tag <sites> I found that my web app had two bindnings registered.

    <site name="myApp.Web" id="2">
        <application path="/" applicationPool="Clr4IntegratedAppPool">
            <virtualDirectory path="/" physicalPath="C:\git\myApp\myApp.Web" />
        </application>
        <bindings>
            <binding protocol="https" bindingInformation="*:44332:localhost" />
            <binding protocol="http" bindingInformation="*:50418:localhost" />
        </bindings>
    </site>
    

    Removing the binding pointing to *:50418:localhost solved the issue.

    Using VS2017 and IISExpress v10.

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