visual-studio - 无法在 VS 2013 中启动 IIS Express Web 服务器

标签 visual-studio asp.net-mvc-4 iis visual-studio-2013 iis-express

我在 MVC 4 中有一个使用 VS 2013 的应用程序。

这很奇怪,直到昨晚一切正常,但是今天早上当我开始工作并尝试运行我的应用程序时,我发现了以下错误:

Unable to launch IIS express web server.
Failed to register URL"http://localhost:62707" for site...
Access denied(0x80070005)

我从早上开始就搜索了这个,我得到了我尝试的解决方案:
  • 我从我的文档中多次删除了 IIS Express 文件夹,然后
    尝试通过重新打开应用程序来运行应用程序,但效果很好。
  • 我尝试从 http 更改 applicationhost 文件中的绑定(bind)
    到 https。有了这个,唯一改变的是错误是
    正在上映:

    Unable to launch IIS Express Web server. The start URL specified is not valid.

  • 根据一些建议,我多次重新启动系统。还
    我的浏览器也是。
  • 我尝试从任务管理器结束 IIS Express 的进程。

  • 但似乎没有什么对我有用,即使在尝试了几乎所有的可能性几个小时后,我还是有点卡在这一点上。

    最佳答案

    你可以试试这个:

  • 打开名为“Command shell”的“命令行界面(CLI)”
    "Win+R"写"cmd"把这个命令用于删除urlacl。
    netsh http delete urlacl url=http://{ip_address}:{port}/
    
  • 然后为每个人添加网址
    netsh http add urlacl url=http://{ip_address}:{port}/ user=everyone
    
  • 然后关闭VS并从Documents中删除IISExpress文件夹
    路径为:
    %userprofile%\Documents, e.g. C:\Users\[you]\Documents\IISExpress
    
  • 重新运行您的应用程序。
  • 关于visual-studio - 无法在 VS 2013 中启动 IIS Express Web 服务器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25440060/

    相关文章:

    windows - IIS6 : Create/install SSL self-signed cert from command line

    asp.net - IIS URL 重写 : 403 - Forbidden: Access is denied

    google-chrome - 找不到服务器 DNS 地址 - iis

    typescript - 如何在 Visual Studio CE 2019 中使用#region/#endregion for TypeScript 使区域折叠/扩展?

    mysql - 使用 MySQL 的 Visual Studio 2017 上的类未注册错误

    jQuery Validator.showErrors MVC ViewModel ModelState

    asp.net - IIS 8 - 默认文档 - 找不到资源

    git - Visual Studio Online - 无法解析版本描述符 <BranchName>

    c# - 添加对 QuartzTypeLib 的程序集引用

    c# - 如何在asp.net mvc4中发送电子邮件