在 IIS 中使用 IronPDF:设置指南
This article was translated from English: Does it need improvement?
TranslatedView the article in English
IronPDF和IIS
框架
- 多个网站:在同一个应用池中托管多个网站不受支持,因为Chrome每个进程只允许一个初始化调用。 需要单独的应用池。
- 站点配置更改:即使使用单独的应用池,修改站点配置或内容也可能导致IIS尝试自动重启Chrome。 这将导致崩溃,因为Chrome不支持在没有完全重启的情况下重新初始化。
- 重启要求:崩溃后,需要重新启动网站。 如果问题仍然存在,可能需要完全重启应用池。
Core/.Net
- 应用池:Core/.Net自然强制使用单独的应用池。
- 可靠性:这种设置与IronPDF配合良好。 更改应用内容通常不需要完全重启。
- 多个站点:您可以在同一个IIS Web服务器上使用IronPDF运行多个站点而没有问题。
- 实时重载:不支持此功能。
我们正在积极改进检测机制,并致力于为这一越来越罕见的设置要求提供更清晰、更有帮助的异常消息。
从IronPdf版本2022.7.6986开始,请尝试设置Installation.SkipShutdown = true。 这可以在API文档中找到。
API参考 - IronPDF Installation
// This setting prevents unnecessary shutdowns which may occur on site configuration changes.
IronPdf.Installation.SkipShutdown = true;// This setting prevents unnecessary shutdowns which may occur on site configuration changes.
IronPdf.Installation.SkipShutdown = true;' This setting prevents unnecessary shutdowns which may occur on site configuration changes.
IronPdf.Installation.SkipShutdown = True$vbLabelText $csharpLabel
准备开始了吗?
Nuget 下载 16,685,821 | 版本: 2025.12 刚刚发布






