Wcf netsh不适用于AddressAccessDeniedException:HTTP无法注册URL
当其他开发人员试图通过vs 2010运行该服务时,他们收到错误:Wcf netsh不适用于AddressAccessDeniedException:HTTP无法注册URL,wcf,wcf-configuration,Wcf,Wcf Configuration,当其他开发人员试图通过vs 2010运行该服务时,他们收到错误: 请尝试将HTTP端口更改为88或以管理员身份运行。 System.ServiceModel.AddressAccessDeniedException:HTTP无法注册URL。您的进程没有对此命名空间的访问权限(有关详细信息,请参阅)。-->System.Net.HttpListenerException:访问被拒绝 在执行一些搜索并转到Microsoft指定的链接后,我让他们运行以下命令: netsh http add urlac
请尝试将HTTP端口更改为88或以管理员身份运行。
System.ServiceModel.AddressAccessDeniedException:HTTP无法注册URL。您的进程没有对此命名空间的访问权限(有关详细信息,请参阅)。-->System.Net.HttpListenerException:访问被拒绝
在执行一些搜索并转到Microsoft指定的链接后,我让他们运行以下命令:
netsh http add urlacl url=http://+:88/ColorService user=BUILTIN\Administrators
错误仍然出现,因此我还让他们使用Domain\User运行命令
netsh http add urlacl url=http://+:88/ColorService user=DOMAIN\user
上面的仍然不起作用,所以我在下面找到了一个工具来尝试并访问NT Authority\Interactive,但这也不起作用
最后,我返回给每个端点一个基址:
http:\\localhost:8732\Design\u Time\u Addresses\ColorService
之后它就开始工作了
为什么它不能与其他基本地址一起工作
我在每个端点中也没有任何dns节点,这有关系吗?这是用来干什么的?我将其添加回:
<Host>
<dns>localhost<dns/>
</Host>
本地服务器
我有这个错误。我在app.config中使用以下端点对其进行了配置:
<host>
<baseAddresses>
<add baseAddress="http://ttintlonape01:6970/janus/data" />
</baseAddresses>
你得到了
事实证明,WCF会自动放入一个端点(不确定何时)-添加到配置中修复了它。即
<service behaviorConfiguration="ServiceBehavior" name="TT.Janus.Service.DataProvider">
<clear />
<endpoint address="net.tcp://ttintlonape01/janus/data" binding="netTcpBinding"
bindingConfiguration="NoSecurityBinding" contract="TT.Janus.Service.IDataProvider" />
<endpoint address="mex" binding="mexHttpBinding" bindingConfiguration="" contract="IMetadataExchange" />
<host>
<baseAddresses>
<add baseAddress="http://ttintlonape01:6969/janus/data" />
</baseAddresses>
</host>