Access Denied to folder具有完全权限

时间:2013-10-12 07:33:45

标签: c# asp.net permissions

我正在研究文档查看器Web应用程序并且我使用Atalasfot第三方库,来自库的“WebImageViewer”控件需要指定文件夹,他将使用它来获取图像列表,因此我创建了“Images”文件夹在我的应用程序中,我给它完全控制权限,如下面的屏幕截图:

enter image description here

也有权允许IIS_IUSERS不出现在上图中。

当我运行应用程序时,我收到以下错误:

   Access to the path 'XXX\Images' is denied. ASP.NET is not authorized to access the requested     resource. Consider granting access rights to     the resource to the ASP.NET request identity. ASP.NET has a base process identity (typically {MACHINE}\ASPNET on IIS 5 or Network Service on IIS 6 and IIS 7, and the configured application pool identity on IIS 7.5) that is used if the application is not impersonating. If the application is impersonating via <identity impersonate="true"/>, the identity will be the anonymous user (typically IUSR_MACHINENAME) or the authenticated request user.

有人可以帮忙吗?

1 个答案:

答案 0 :(得分:1)

我认为问题源于离开'Anonymous Access' checked in IIS,即使使用您为匿名用户提供的用户名/密码也是如此。

解决方案: - 您需要取消选中anonymous user并使用“Integrated Windows Authentication'