问题
如果您开始使用 Microsoft Internet信息服务Express(IIS),来自 Microsoft Visual Studio(VS)在运行时可能会生成生成此错误消息
If you start using "Microsoft Internet Information Services Express (IIS)" from "Microsoft Visual Studio (VS)" you may get when you run Build this error message
无法连接到配置的开发Web服务器。
无法注册URL http:// { ip_addr}:{port} /用于站点 {project_name}应用程序 /。错误描述:访问被拒绝。 (0x80070005)
这是什么权利?
推荐答案解决方案
这意味着您缺少使用它的权利。使用用于超文本传输协议的Netsh命令创建它> 添加urlacl 。
This means that you are missing the right for using it. Create it with Netsh Commands for Hypertext Transfer Protocol > add urlacl.
1)打开 命令名为 命令外壳的线路接口(CLI)用 Win + R 写入 cmd
1) Open "Command Line Interface (CLI)" called "Command shell" with Win+R write "cmd"
2)打开CLI窗口,例如带有鼠标上下文菜单的管理员Windows或图标以管理员身份运行
2) Open CLI windows like administrator with mouse context menu on opened windows or icon "Run as administrator"
3)插入命令以注册网址
3) Insert command to register url
netsh http add urlacl url={ip_addr}:{port}/ user=everyone注意:
- 要删除,您可以使用: netsh http删除urlacl url = http:// {ip_addr}:{port} /
- 如果不起作用,请重新启动 Microsoft Windows(WIN),然后打开项目并重新构建。
- 有时这些症状可能与无法启动IIS Express Web服务器 。
- For remove you can use: netsh http delete urlacl url={ip_addr}:{port}/
- If not work restart Microsoft Windows (WIN) and then open project and build again.
- Sometimes these symptoms may be the same like "Unable to launch the IIS Express Web server".
更多推荐
如何解决“ Microsoft Visual Studio(VS)”错误“无法连接到配置的开发Web服务器”
发布评论