HTTP无法在WCF中注册URL错误 [英] HTTP could not register URL error in WCF

查看:71
本文介绍了HTTP无法在WCF中注册URL错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在笔记本电脑中编写WCF服务。我正在尝试创建一个服务主机实例,然后添加一个服务端点。但是我收到以下错误消息: -



HTTP无法注册URL http:// +:8000 / ServiceModelSamples / Service /。您的进程没有此命名空间的访问权限(有关详细信息,请参阅http://go.microsoft.com/fwlink/?LinkId=70353)。





我能够以管理员身份运行程序但有没有办法成功运行程序没有管理员权限



预付款。



问候

Jashobanta

I am trying to code a WCF service in my laptop. I am trying to create a service host instance and then add a Service End Point to it. But I am getting the following error message :-

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).


I am able to run the program as an admin but is there any way to run the program successfully without having Admin Rights?

THanks in Advance.

Regards
Jashobanta

推荐答案

我知道很热,可以成功解决这个问题。

要解决,请使用管理员权限打开comand ine并粘贴nex行:

netsh http add urlacl url = http:// +:8000 / ServiceModelSamples / Service / user = mylocaluser
Hi, i know hot to resolve this issue with success.
For resolving , open comand ine with admin rights and paste nex line:
netsh http add urlacl url=http://+:8000/ServiceModelSamples/Service/ user=mylocaluser


这篇关于HTTP无法在WCF中注册URL错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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