本文介绍了WCF的ServiceHost访问权限的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
通过WCF教程去时,我得到了下面的错误。
I get the following error when going through the WCF tutorial.
HTTP不能注册网址的http:// +:8000 / ServiceModelSamples /服务/ 。您的进程不具有访问权限这个命名空间(见 go.microsoft/fwlink/?LinkId= 70353 详情)。
HTTP could not register URL +:8000/ServiceModelSamples/Service/. Your process does not have access rights to this namespace (see go.microsoft/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=+:8000/ServiceModelSamples/Service user=mylocaluser更多推荐
WCF的ServiceHost访问权限
发布评论