2012-10-18 32 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帐户可以完全访问该文件夹 –

相关问题