2012-10-18 59 views
0

我在.NET 4.0中有一個asp.net網站,它在我們的臨時環境中運行良好。當我們將其轉移到生產環境中時,我們得到以下錯誤ASP.Net部署錯誤:無法加載文件或程序集

'/ mysite'應用程序中的服務器錯誤。

無法加載文件或程序集「SupportSite.UI」或其某個依賴項。訪問被拒絕。 異常詳細信息:System.IO.FileLoadException:無法加載文件或程序集「SupportSite.UI」或其某個依賴項。訪問被拒絕。

我認爲這是一個安全問題。它使用IIS WAS設置進行部署。

  1. 我需要授予哪些用戶權限(以及所有文件夾)?

  2. aspnet_wp.exe或w3wp.exe對應的用戶是什麼?

參考文獻

  1. Could not load file or assembly or one of its dependencies. Access is denied. The issue is random, but after it happens once, it continues

  2. Could not load file or assembly 'Telerik.Web.UI' or one of its dependencies

  3. ApplicationPoolIdentity permissions on Temporary Asp.Net files

  4. could not load file or assembly, Tried all solution on net

回答

1

您需要授予的的lib文件夾讀取權限IIS_IUSRS帳戶。

+0

我不需要授予對ASP.NET臨時文件的權限? – Lijo

+1

不,默認情況下IIS_IUSRS帳戶可以完全訪問該文件夾 –

相關問題