Sar*_*roj 7 iis visual-studio iis-express asp.net-mvc-4 visual-studio-2013
我使用VS 2013在MVC 4中有一个应用程序.
这很奇怪,一切都工作正常,直到昨晚,但今天早上,当我开始工作并尝试运行我的应用程序时,我发现以下错误:
Unable to launch IIS express web server.
Failed to register URL"http://localhost:62707" for site...
Access denied(0x80070005)
Run Code Online (Sandbox Code Playgroud)
我从早上开始搜索这个问题,我得到了解决方法,我尝试过:
我尝试将applicationhost文件中的绑定从http更改为https.有了这个,唯一改变的是错误现在显示:
无法启动IIS Express Web服务器.指定的起始URL无效.
根据一些建议,我多次重启系统.我的浏览器也是.
但似乎没有什么对我有用,即使在几乎所有的可能性尝试了几个小时后,我有点卡在这一点上.
Vis*_*til 14
你可以试试这个:
打开"命令行界面(CLI)",称为"命令shell",用"Win + R"写"cmd",将此命令用于删除urlacl.
netsh http delete urlacl url=http://{ip_address}:{port}/
Run Code Online (Sandbox Code Playgroud)然后为每个人添加网址
netsh http add urlacl url=http://{ip_address}:{port}/ user=everyone
Run Code Online (Sandbox Code Playgroud)然后关闭VS并从Documents路径中删除IISExpress文件夹:
%userprofile%\Documents, e.g. C:\Users\[you]\Documents\IISExpress
Run Code Online (Sandbox Code Playgroud)重新运行您的应用程序.
归档时间: |
|
查看次数: |
12384 次 |
最近记录: |