Handling URL Binding Failures in IIS Express

前端 未结 4 1475
悲哀的现实
悲哀的现实 2021-02-10 05:03

I have deployed my WCF webservice locally and its working fine, But in a method I got unexpected result so I decided to debug my webservice in

相关标签:
4条回答
  • 2021-02-10 05:26

    on cmd with admin access

    netsh http add urlacl url=http://localhost:80/ user=everyone
    

    From Microsoft Docs: Handling URL Binding Failures in IIS Express

    0 讨论(0)
  • 2021-02-10 05:28

    I faced same problem windows7, VS15, I tried adding/removing localhost:port# to urlacl using netsh command but din`t work.

    netsh http add urlacl url=http://localhost:63746/ user=everyone

    I had to disable Internet Connection Sharing ICS for my ethernet (I had enabled this for sharing internet to VM) and I was able to debug/run solution locally.

    0 讨论(0)
  • 2021-02-10 05:45

    Open .CSPROJ from project, Delete the whole lines for
    <DevelopmentServerPort> and <IISUrl> ...

    http://gizmoblogr.com/821/workaround-url-binding-failure-error-iisexpress

    0 讨论(0)
  • 2021-02-10 05:45

    Are you sure, that your're debugging the service with an elevated account? This error is quite common if you're trying to host a service on a non-default port using a standard user.

    You could try to register that port to that specific user. Open an elevated command prompt and execute the follwing command:

    add urlacl url=http://localhost:61241/TaxiRiderService user=YOURDOMAIN\youruser
    

    For details have a look at: http://msdn.microsoft.com/en-us/library/windows/desktop/cc307223%28v=vs.85%29.aspx

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