如何解决“ Microsoft Visual Studio(VS)”错误“无法连接到配置的开发Web服务器” [英] How to solve “Microsoft Visual Studio (VS)” error “Unable to connect to the configured development Web server”

查看:614
本文介绍了如何解决“ Microsoft Visual Studio(VS)”错误“无法连接到配置的开发Web服务器”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问题

如果您开始使用 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=http://{ip_addr}:{port}/ user=everyone

注意

  • For remove you can use: netsh http delete urlacl url=http://{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服务器”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆