【发布时间】:2013-10-12 07:33:45
【问题描述】:
我正在开发文档查看器 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.
有人可以帮忙吗?
【问题讨论】:
-
您在代码中的哪里设置图像路径?你能用相关代码更新问题吗?
-
没有设置图片的代码,只是控件中的一个属性,所有的读写都是控件内部完成的
标签: c# asp.net permissions