本地调试WCF程序出现错误:AddressAccessDeniedException: HTTP could not register URL
来源:互联网 发布:淘宝正版汉服店铺推荐 编辑:程序博客网 时间:2024/05/22 00:27
原因,没权限
这个问题是因为在Vista,server 2008,Win7等操作系统中,http地址是归一个叫做http.sys的核心驱动管理的。当你想http.sys发出请求时,是需要注册这个http命名空间的,这是一个需要特权(管理员权限)的操作。
所以当你使用管理员登陆时,这个异常一般不会发生,当你使用其他用户(哪怕只是管理员组成员)时,就需要“以管理员身份”打开命令提示符窗口,并输入:
netsh http add urlacl url=http://+:8080/ user=<你的用户名>
上面的:8080端口根据你实际的端口输入,user=后面直接输入你当前登陆的用户名。
或者,
可能是你的VS没有用管理员身份启动。或是生成后的WCF程序没有用管理员身份启动,改成管理员身份启动就可以解决这个问题(当您的系统是Win7或是VISTA的时候,会出现这种情况)
- 本地调试WCF程序出现错误:AddressAccessDeniedException: HTTP could not register URL
- 本地调试WCF程序出现错误:AddressAccessDeniedException: HTTP could not register url
- Could not register HTTP URL with WCF
- HTTP could not register URL http://+:8000/ServiceModelSamples/service/. Your
- WCF System.ServiceModel.AddressAccessDeniedException: HTTP 无法注册
- WCF System.ServiceModel.AddressAccessDeniedException
- 解决调试android程序,出现错误"source not found"
- wcf 在win7 iis7.5寄宿时出现error HTTP 错误 404.3 - Not Found
- Android 调试出现 could not get wglGetExtensionsStringARB
- CentOS 使用yum命令安装出现错误提示”could not retrieve mirrorlist http://mirrorlist.centos.org
- CentOS 使用yum命令安装出现错误提示”could not retrieve mirrorlist http://mirrorlist.centos.org ***”
- Android出现Could not find ***.apk!错误
- 解决Idea 出现 "Could not autowire.." 错误
- http错误:Could not find acceptable representation
- BuildError: Could not build url for endpoint 'auth.register'(关键词:Web开发/Flask/bug)
- servlet中使用service()方法出现错误:HTTP method POST is not supported by this URL
- IIS本地调试出现500错误
- web程序本地通过ip地址链接不到数据库oracle11g,异常错误 The Network Adapter could not establish the connection
- 小小游戏程序员工作两年后的反思
- latex替换功能使用
- 快速排序
- 文法
- C语言编译全过程剖析
- 本地调试WCF程序出现错误:AddressAccessDeniedException: HTTP could not register URL
- 实现添加featureclass
- 常用 SQl 语句大全
- 常用DOS命令
- C#压缩解压RAR压缩文件
- Dos下cd命令的用法
- 早上和女儿画画
- C#生成页面静态页
- 再读《麦肯锡方法》