-1

我最近将八达通服务器从 2.0 版升级到 2.4 版。它设法安装服务器,但不断崩溃并出现以下错误:-

System.Exception: The HTTP server could not start because namespace reservations have not been made. Ensure that the current user has access to listen on these prefixes by running the following command(s):
netsh http add urlacl url=http://+:8081/octopus/ user=test\SYSTEM
netsh http add urlacl url=http://+:8081/octopus/ user=test\SYSTEM

尝试卸载并再次安装。

4

1 回答 1

1

据我所知,我可以说使用以下命令作为示例:

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

您应该根据您的情况调整端口和/或路径:

netsh http add urlacl url = http:// + : 8080/MyConsoleAppHostedService user=DOMAIN\user

netsh http add urlacl url=http:// + : 8091/MyWindowsServiceHostedService user=\SYSTEM

要删除 urlacl,请执行以下操作:

delete urlacl url = https:// * : 8172/
于 2014-06-18T09:38:18.130 回答