2011-09-20 54 views
2

我有「網絡服務」和我自己添加到文件夾的安全權限,但我得到了以下錯誤:ASP.NET應用程序可以使越來越拒絕訪問到網絡共享

Access to the path '\\path\folder\image.gif' 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

網絡共享具有正確的安全權限,但共享權限未爲用戶正確配置。

0

需要在IIS池檢查該asp應用程序運行。您可以將此存儲池分配給該池的強大身份。

1

檢查ApplicationPool實際運行在哪個用戶下:如果您正在運行IIS 7(或更高版本),則此用戶不是「網絡服務」。

此外,您可以分配指定的用戶來運行此應用程序池並相應地授予權限。

+0

它在IIS6 – Bruno

+0

的網絡服務下運行,比您應該檢查的是否將安全權限不僅分配給文件夾,還分配給文件夾中的所有文件。 – MADMap

0

是否在另一臺服務器上的文件夾?如果是這樣,則需要爲在遠程服務器上提出請求讀取權限的服務器提供機器帳戶。

相關問題