2013-10-12 54 views
1

我正在處理文檔查看器Web應用程序,並使用Atalasfot第三方庫,庫中的「WebImageViewer」控件需要指定他將使用它來獲取圖像列表的文件夾,所以我創建我的應用程序「圖片」文件夾,我給它的完全控制權限像下面的屏幕截圖:拒絕訪問文件夾具有完全權限

enter image description here

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

有人能幫忙嗎?

+0

你設置在你的代碼圖像路徑?你能用相關的代碼更新問題嗎? – Damith

+0

沒有設置圖像的代碼,它只是控件中的一個屬性,並且所有的寫入和讀取都是由控件內部完成的 –

回答

1

我認爲問題源於離開'Anonymous Access' checked in IIS,即使使用您爲匿名用戶提供的用戶名/密碼。

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

+0

感謝Rahul的快速回復,但是如何在開發Sever中做到這一點? –

+0

Did not get that,you need to to the IIS and change the setting there! –

+0

沒有工作,我認爲這是操作系統問題。 –

相關問題