2009-12-16 90 views
3

我有一个混合的WebForms/MVC应用程序,我试图部署到我们的临时环境,这是全新安装的Server 2008 R2与IIS 7.5。IIS 7.5 MVC 2问题与401.3错误

此应用程序工作正常,而任何人的本地机器上开发(通过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组可以通过文件系统进行访问。

回答

4

这是(某种)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

1

使用失败请求跟踪&精简视图,看看是什么原因造成401.3。由于使用VS IDE工作正常,这意味着它在登录用户帐户的上下文中工作。
Vivek