我有一个混合的 WebForms/MVC 应用程序,我正在尝试将其部署到我们的暂存环境,该环境是全新安装的 Server 2008 R2,带有 IIS 7.5。
该应用程序在任何人的本地计算机上进行开发时都可以正常工作(通过 Visual Studio 的 Web 服务器),但是当它托管在临时服务器上时,我们会收到以下错误:
HTTP Error 401.3 - Unauthorized
You do not have permission to view this directory or page because of the access control list (ACL) configuration or encryption settings for this resource on the Web server.
我已经设置尝试解决此问题:
- 已启用匿名身份验证。
- 所有其他形式的身份验证均已停用。
- 授权设置为允许所有用户。
- IIS_IUSRS 组可以通过文件系统进行访问。
最佳答案
这是(有点)duplicate of this question这为我解决了这个问题。
来自该帖子:
IIS 7 also creates "IUSR" as default user to access files via IIS. So make user IUSR has read access to files/folders.
How to check if IUSR has read Access? Right Click -> Folder -> Properties -> Security Tab See if IUSR is in Group or user names list, If No.
Click Edit -> Add -> Advanced -> Find Now -> Select IUSR and click OK four times
关于asp.net-mvc - IIS 7.5 MVC 2 401.3 错误问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1917598/