简体   繁体   English

当网站未作为网络服务运行时,应用程序池崩溃

[英]Application Pool Crashes when Web Site is Not Running as Network Service

I have a site running Crystal Reports Viewer in IIS 7 but for security reasons we want it to run the application pool under the ApplicationPoolIdentity. 我有一个在IIS 7中运行Crystal Reports Viewer的站点,但出于安全考虑,我们希望它在ApplicationPoolIdentity下运行应用程序池。 We noticed the application pool keeps crashing when we switched it from Network Service to ApplicationPoolIdentity and we want to give extra permissions to the ApplicationPoolIdentity on certain folders on the drive in order to remedy this situation. 我们注意到,当我们将它从Network Service切换到ApplicationPoolIdentity时,应用程序池一直崩溃,我们希望为驱动器上的某些文件夹上的ApplicationPoolIdentity提供额外的权限,以便解决这种情况。

The problem is, we gave a ton of permissions to different folders, but as far as we can tell we cannot pinpoint why the application pool keeps crashing and what file it cannot access. 问题是,我们对不同的文件夹提供了大量权限,但据我们所知,我们无法确定应用程序池为什么会崩溃以及无法访问的文件。

We checked a lot of different log files, but maybe we skipped over some that could be of more importance. 我们检查了很多不同的日志文件,但也许我们跳过了一些可能更重要的日志文件。 Is there anything out there to show us where the problem is, whether it be a certain log I haven't come across or some sort of tracing I can use to get to the files that I need to give this identity permissions? 有没有什么可以告诉我们问题在哪里,是否是我没有遇到的某个日志或某种跟踪我可以用来获取我需要提供此身份权限的文件?

The pool crashes when trying to load Crystal Reports Viewer and gives no errors, just says it is unreachable. 尝试加载Crystal Reports Viewer时池崩溃并且没有错误,只是说它无法访问。

IIRC Crystal Reports Viewer是一个COM对象...它们通常需要关于权限的特殊情况,甚至可能不可靠,因为某些COM对象需要“桌面”才能正常工作...不确定Crystal Reports Viewer是否是其中之一我建议询问供应商您的方案中需要哪些配置/权限......

Actually you may be able to get this to work by setting the permissions correctly for appPoolIdentity. 实际上,您可以通过为appPoolIdentity正确设置权限来实现此功能。 See the following post on the IIS team blog. 请参阅IIS团队博客上的以下帖子。

http://blogs.iis.net/webdevelopertips/archive/2009/10/02/tip-98-did-you-know-the-default-application-pool-identity-in-iis-7-5-windows-7-changed-from-networkservice-to-apppoolidentity.aspx http://blogs.iis.net/webdevelopertips/archive/2009/10/02/tip-98-did-you-know-the-default-application-pool-identity-in-iis-7-5-windows- 7-改变从-网络服务到apppoolidentity.aspx

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM