WCF的ServiceHost访问权限 [英] WCF ServiceHost access rights

查看:159
本文介绍了WCF的ServiceHost访问权限的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

通过WCF教程去时,我得到了下面的错误。

I get the following error when going through the WCF tutorial.

HTTP不能注册网址的http:// +:8000 / ServiceModelSamples /服务/ 。您的进程不具有访问权限这个命名空间(见 http://go.microsoft.com/fwlink/?LinkId= 70353 详情)。

HTTP could not register URL http://+:8000/ServiceModelSamples/Service/. Your process does not have access rights to this namespace (see http://go.microsoft.com/fwlink/?LinkId=70353 for details).

这是什么造成的限制在Windows 7?

Is this something caused by a restriction on Windows 7?

推荐答案

的问题是,URL正在从由Windows创建阻止。

The issue is that the URL is being blocked from being created by Windows.

步骤来解决:
运行命令提示符为管理员。
该URL添加到ACL

Steps to fix: Run command prompt as an administrator. Add the URL to the ACL

netsh http add urlacl url=http://+:8000/ServiceModelSamples/Service user=mylocaluser

这篇关于WCF的ServiceHost访问权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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