HTTP 无法注册 URL http://+:10001/.您的进程无权访问此命名空间 [英] HTTP could not register URL http://+:10001/. Your process does not have access rights to this namespace

查看:27
本文介绍了HTTP 无法注册 URL http://+:10001/.您的进程无权访问此命名空间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚从 Windows 7/VS2010 升级到全新安装的 Windows 8/VS2012.我正在登录域用户(域管理员),并且在从 VS2012 启动我的一些 wcf 服务时开始看到此错误:

I just upgraded from Windows 7/VS2010 to a clean install of Windows 8/VS2012. I'm logging onto a domain user (domain admin) and have started seeing this error when launching some of my wcf services from VS2012:

HTTP 无法注册 URL http://+:10001/.您的进程无权访问此命名空间

HTTP could not register URL http://+:10001/. Your process does not have access rights to this namespace

我以前从未在 Windows 7 上遇到过这种情况,我有点困惑为什么我现在在 Windows 8 中看到这种情况(域管理员,用户访问控制已关闭).通过一些研究,我发现这个错误是由于 VS 进程没有以管理员权限运行而出现的,非管理员显然无法监听 TCP 端口,但是,我不太明白为什么 VS 不会像管理员一样运行我登录的用户是域管理员?

I've never experienced this before on Windows 7 and I'm a little perplexed why I'm seeing this now in Windows 8 (domain admin, user access control turned off). With some research I found out that this error arises due to the VS process not running with admin rights and non admins apparently can't listen on TCP ports, however, I don't quite follow why VS wouldn't run as admin as the user I'm logging in to is a domain admin?

推荐答案

您必须执行如下操作:

netsh http add urlacl url=http://+:10001/YourUri/ user=\Everyone

netsh http add urlacl url=http://+:10001/YourUri/ user=DOMAIN\user

文章 中提到了一些内容,或者谷歌搜索netshhttp 添加 urlacl"

Something is mentioned in this article or google for "netsh http add urlacl"

AFAIK,因为即使由管理员帐户启动,Vista 进程也不会以提升的权限运行.这就是 UAC 背后的全部意义.
但是,在您运行 netsh 命令之后,您无论如何都不需要类似的东西.

AFAIK since Vista processes do not run with elevated privileges even if launched by Admin account. That is the whole point behind UAC.
However after you run netsh command you will not need anything like that anyway.

这篇关于HTTP 无法注册 URL http://+:10001/.您的进程无权访问此命名空间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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