【问题标题】:Access Denied to folder have full permission拒绝访问文件夹具有完全权限
【发布时间】: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


【解决方案1】:

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

解决方法:-你需要取消勾选anonymous user并使用'Integrated Windows Authentication'

【讨论】:

  • 感谢 Rahul 的快速回复,但如何在开发服务器中执行此操作?
  • 没有正确理解,您需要转到 IIS 并更改那里的设置!
  • 我不太确定,但这个错误的最佳可能原因是我在回答中提到的。无论如何,试图找出是否还有其他可能!
猜你喜欢
  • 2016-01-18
  • 1970-01-01
  • 2021-03-05
  • 1970-01-01
  • 1970-01-01
  • 2011-08-30
  • 1970-01-01
  • 1970-01-01
  • 2013-01-28
相关资源
最近更新 更多