IIS 7.5 MVC 2问题401.3错误[关闭](IIS 7.5 MVC 2 problem with 401.3 error [closed])

编程入门 行业动态 更新时间:2024-10-03 02:16:54
IIS 7.5 MVC 2问题401.3错误[关闭](IIS 7.5 MVC 2 problem with 401.3 error [closed])

我有一个混合的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

更多推荐

本文发布于:2023-08-04 21:21:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1422255.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:错误   MVC   IIS   closed   error

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!