我有一个混合的WebForms / MVC应用程序,我正在尝试部署到我们的暂存环境,这是一个全新安装的Server 2008 R2,带有IIS 7.5。
这个应用程序在任何人的本地计算机(通过visual studio的Web服务器)上进行开发时工作正常,但是当它在登台服务器上托管时,我们会收到以下错误:
HTTP错误401.3 - 未经授权
由于Web服务器上此资源的访问控制列表(ACL)配置或加密设置,您无权查看此目录或页面。
我试图解决这个问题的事情:
已启用匿名身份验证。 禁用所有其他形式的身份验证。 授权设置为允许所有用户。 IIS_IUSRS组可以通过文件系统进行访问。I have a mixed WebForms/MVC application I'm trying to deploy to our staging environment, which is a fresh install of Server 2008 R2, with IIS 7.5.
This application works fine while developing on anyone's local machine (via visual studio's web server), however when when it's hosted on the staging server we get the following error:
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.
Things I've set to try to fix this:
Anonymous Authentication is Enabled. All other forms of authenication are disabled. Authorization is set to allow all users. the IIS_IUSRS group has access via the file system.最满意答案
这是(某种) 这个问题的重复,它为我解决了这个问题 。
从那篇文章:
IIS 7还创建“IUSR”作为默认用户通过IIS访问文件。 因此,使用户IUSR具有对文件/文件夹的读取权限。
如何检查IUSR是否已读取Access? 右键单击 - >文件夹 - >属性 - >安全选项卡查看IUSR是否在组或用户名列表中,如果否。
单击编辑 - >添加 - >高级 - >立即查找 - >选择IUSR,然后单击确定四次
This is (sort of) a duplicate of this question which fixed the issue for me.
From that post:
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
更多推荐
发布评论