BG *_*uno 45 visual-studio iis-express access-rights
问题
如果您开始使用" Microsoft Visual Studio(VS) "中的" Microsoft Internet Information Services Express(IIS) ",您可能会在运行时获得生成此错误消息
Unable to connect to the configured development Web server.
Failed to register URL "http://{ip_addr}:{port}/" for site "{project_name}" application "/". Error description: Access is denied. (0x80070005)
它有什么样的权利?
BG *_*uno 55
解
这意味着您缺少使用它的权利.使用Netsh Commands for Hypertext Transfer Protocol创建它> 添加urlacl.
1)使用+ write"cmd" 打开名为" Command shell "的" 命令行界面(CLI) "WinR
2)打开CLI窗口,如管理员,在打开的窗口上显示鼠标上下文菜单或图标"以管理员身份运行"
3)插入命令以注册URL
netsh http add urlacl url=http://{ip_addr}:{port}/ user=everyone
Run Code Online (Sandbox Code Playgroud)
注意:
netsh http delete urlacl url=http://{ip_addr}:{port}/Ahm*_*lan 23
我修复了删除项目文件夹上的.vs文件夹的问题.
VS将为此项目生成新配置.
PS:我的版本是VS2015
Has*_*jmi 19
以管理员身份打开Visual Studio 将解决问题.
我们通过删除项目文件夹上的.vs 文件夹并删除临时 ASP.NET 文件解决了这个问题。
1. Close the Visual Studio.
2. Delete .vs folder on project folder that includes applicationhost.config file.
3. Delete temporary ASP.NET Files located: C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
95173 次 |
| 最近记录: |