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 Visual Studio. But I get the following errors. (Even I am running VS with administrative privileges).
I also exposed endpoints in web.config
but still not working here is the error from Log file,
Failed to register URL "http://localhost:61241/" for site "TaxiRiderService" application "/". Error description: Access is denied. (0x80070005)
Similarly, you might want to test your site using SSL or using a specific reserved port number. By default, if you use IIS Express to test these scenarios, it reports a URL binding failure. This occurs because IIS Express does not have sufficient privileges to perform these types of tasks.
When IIS Express only starts the serving requests for the binding it's instructed to initialize. That's why even though there are multiple bindings in the config file, you only see your site when you right click on the IIS Express icon and see the sites being served up.
If you want to test SSL access to your site, you can do this with IIS Express by using an SSL port between 44300 and 44399 and using the IIS Express self-signed certificate. Trying to use SSL with a port outside this range results in a URL binding failure when your website is launched under IIS Express.
Using HTTPS to connect to a website running in IIS Express will fail when the IIS Express Development Certificate is improperly bound to the port or the certificate has expired or the certificate has been improperly installed. Common browser error messages for HTTPS failures include the following:
Open .CSPROJ from project, Delete the whole lines for
<DevelopmentServerPort> and <IISUrl> ...
http://gizmoblogr.com/821/workaround-url-binding-failure-error-iisexpress
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With