Visual Studio2015.无法注册URL以进行站点访问被IIS Express拒绝.拒绝访问0x80070005 [英] Visual Studio 2015. Failed to register URL for site access is denied IIS Express. Access denied 0x80070005
问题描述
我在Visual Studio 2015中启用了SSL,以便在本地实现 Facebook 和 Google 登录.
I enabled SSL in Visual Studio 2015 in order to implement Facebook and Google login locally.
我将项目属性的 Web选项卡中的项目URL 更改为 https://localhost:44300/ ,并用 RequireHttps 属性-
I changed the project URL in the Web tab of the project's properties to https://localhost:44300/ and decorated the controller with the RequireHttps attribute - ref @msdn.
在本地一切正常.
我将设置恢复为HTTP来测试其他内容,当我尝试返回HTTPS时,这给我带来了问题.
I reverted settings to HTTP to test something else and that caused me a problem when I tried to get back to HTTPS.
I found this SO question and tried almost every suggested solution.
错误详细信息:
无法为站点" site "应用程序" path "注册URL" url ". 错误描述:访问被拒绝. (0x80070005).
Failed to register URL "url" for site "site" application "path". Error description: Access is denied. (0x80070005).
推荐答案
我必须在DOS中发出此命令来解决VS 2015中的问题:
I had to issue this command in DOS to solve the problem in VS 2015:
netsh http add urlacl url=http://{ip_addr}:{port}/ user=everyone
奇怪的是,仅当我将项目移至另一台PC时才需要.在原始PC上,我不需要它.
Strangely this was only needed when I moved the project to a different PC. On the original PC I didn't need it.
这篇关于Visual Studio2015.无法注册URL以进行站点访问被IIS Express拒绝.拒绝访问0x80070005的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!