简体   繁体   中英

When debugging in Visual Studio I get message 'Access is denied' in the browser with Local IIS Server NOT with IIS EXPRESS

I am working on an ASP.NET MVC 5 solution right now. When I press F5 (Start Debugging) in Visual Studio 2012, Internet Explorer is opening and I can see Access is denied. (see below) in the tab title. After a few seconds, I access to the first page as intended.

In Visual Studio: If I switch from IE to GC (dropdown choice) and start debugging, I don't get this message.

Any idea why I got this message?

在此处输入图片说明


UPDATE: I noticed that

  • when checking Use IIS EXPRESS the problem disappear.

  • when unchecking Use IIS EXPRESS (so using IIS Web Server) the problem is here again.

Maybe an authorization right?

这可能是由于记录的Internet Explorer错误导致的, 错误的出现是因为ASP.NET工作进程没有身份验证后模拟客户端的用户权限。

After trying a lot of things as suggested in others posts, finally I had to delete temporary Internet Explorer files. As simple as that.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM