asp.net-mvc - IIS 7.5 MVC 2 401.3 错误问题

标签 asp.net-mvc authorization iis-7.5 http-status-code-401

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

相关文章:

sql - 随机遇到网络路径未找到异常

ruby-on-rails - Rails 3 - 授权,为分层计划设置限制?

iis-7.5 - Windows 2008 R2 64 位机器 (Tridion 5.3) 上的 ComponentPresentationAssembler 错误

asp.net - 在 IIS7.5 中不可见的无扩展名图像文件

html - 按钮始终右对齐

javascript - MVC 从下拉列表中过滤 actionResult

javascript - 剑道ui网格背景变化事件

首次 Facebook Connect 授权/登录后 iPhone 应用程序崩溃

javascript - React 中基于角色的授权中的 HOC 错误

ASP.net 同源策略 header 不起作用