拒绝访问文件夹具有完全权限

我正在处理文档查看器Web应用程序,并使用Atalasfot第三方库,库中的“WebImageViewer”控件需要指定他将使用它来获取图像列表的文件夹,所以我创建我的应用程序“图片”文件夹,我给它的完全控制权限像下面的屏幕截图:拒绝访问文件夹具有完全权限

也有权限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. 

有人能帮忙吗?

回答:

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

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

以上是 拒绝访问文件夹具有完全权限 的全部内容, 来源链接: utcz.com/qa/262740.html

回到顶部