如何解决“Microsoft Visual Studio (VS)”错误“无法连接到配置的开发 Web 服务器”

2024-01-13

PROBLEM

如果您开始使用“Microsoft Internet 信息服务 Express (IIS) http://www.iis.net/learn/extensions/introduction-to-iis-express/iis-express-overview" from "微软 Visual Studio (VS) http://www.microsoft.com/visualstudio/eng“当您运行 Build 时,您可能会收到此错误消息

Unable to connect to the configured development Web server.

Failed to register URL "http://{ip_addr}:{port}/" for site "{project_name}" application "/". Error description: Access is denied. (0x80070005)

它是什么样的权利?


SOLUTION

这意味着您失去了使用它的权利。创建它与超文本传输​​协议的 Netsh 命令 http://technet.microsoft.com/en-us/library/cc725882%28v=ws.10%29.aspx > 添加网址 http://msdn.microsoft.com/en-us/library/windows/desktop/cc307223%28v=vs.85%29.aspx.

  1. Open "Command Line Interface (CLI) http://en.wikipedia.org/wiki/Command-line_interface" called "Command shell http://technet.microsoft.com/en-us/library/bb490954.aspx" with Win+R write "cmd"

  2. 在打开的窗口或图标上使用鼠标上下文菜单,像管理员一样打开 CLI 窗口“以管理员身份运行” https://technet.microsoft.com/en-us/library/cc947813(v=ws.10).aspx

  3. 插入命令以注册 url

netsh http add urlacl url=http://{ip_addr}:{port}/ user=everyone

Note

  • 对于删除,您可以使用:netsh http delete urlacl url=http://{ip_addr}:{port}/
  • 如果不工作重新启动微软视窗(WIN) http://windows.microsoft.com/en-us/windows/home然后打开项目并再次构建。
  • 有时这些症状可能是一样的“无法启动 IIS Express Web 服务器” https://stackoverflow.com/questions/19292788/how-to-solve-microsoft-visual-studio-vs-error-unable-to-launch-the-iis-expr/19292790.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

如何解决“Microsoft Visual Studio (VS)”错误“无法连接到配置的开发 Web 服务器” 的相关文章

随机推荐