处理IIS Express中的URL绑定失败 [英] Handling URL Binding Failures in IIS Express

查看:284
本文介绍了处理IIS Express中的URL绑定失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在本地部署了 WCF 网络服务,并且可以正常工作,但是在某种程度上,我得到了意外的结果,所以我决定在 Visual Studio中调试我的网络服务.但是我收到以下错误. (即使我以管理权限运行VS). 我还在web.config中公开了端点,但是仍然无法正常工作是日志文件中的错误

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,

无法为站点注册URL" http://localhost:61241/" "TaxiRiderService"应用程序"/".错误说明:访问权限为 否认. (0x80070005)

Failed to register URL "http://localhost:61241/" for site "TaxiRiderService" application "/". Error description: Access is denied. (0x80070005)

推荐答案

我在Windows7,VS15, 我尝试使用netsh命令向urlacl添加/删除localhost:port#,但无法正常工作.

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

我必须为我的以太网禁用Internet连接共享ICS(已启用此功能以便与VM共享Internet),并且能够在本地调试/运行解决方案.

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.

这篇关于处理IIS Express中的URL绑定失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆