我正在處理文檔查看器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.
有人能幫忙嗎?
你設置在你的代碼圖像路徑?你能用相關的代碼更新問題嗎? – Damith
沒有設置圖像的代碼,它只是控件中的一個屬性,並且所有的寫入和讀取都是由控件內部完成的 –