我正在开发文档查看器 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.
有人可以帮忙吗?