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

编程入门 行业动态 更新时间:2024-10-21 20:32:16
本文介绍了如何解决“ 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={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服务器”

本文发布于:2023-11-10 22:28:12,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1576636.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:如何解决   连接到   错误   服务器   Microsoft

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!