命令提示符(管理员权限)需要添加的代码:

netsh http add urlacl url=http://*:9999/ user=Everyone listen=yes

其中:

url:代码中的url(如asp.net selfhost里的WebApp.Start<Startup>("http://*:9999")代码);
user:赋予权限的用户组;

查看操作系统中已经存在的保留项:

netsh http show urlacl

删除操作系统中已存在的保留项:

netsh http delete urlacl url=http://*:9999/

相关地址:

https://stackoverflow.com/questions/16642651/self-hosted-owin-and-urlacl

相关文章:

  • 2022-12-23
  • 2021-07-18
  • 2021-07-11
  • 2022-12-23
  • 2022-12-23
  • 2021-09-09
  • 2021-08-07
猜你喜欢
  • 2022-12-23
  • 2021-12-30
  • 2021-08-22
  • 2022-03-04
  • 2022-12-23
相关资源
相似解决方案