在 IIS 中使用 IronPDF:設定指南
This article was translated from English: Does it need improvement?
Translated
View the article in English
IronPDF 與 IIS
框架
- 多個網站:不支援在同一個應用程式池中託管多個網站,因為 Chrome 僅允許每個程序進行一次初始化呼叫。 必須使用獨立的應用程式池。
- 網站設定變更:即使使用獨立的應用程式集區,修改網站設定或內容仍可能導致 IIS 嘗試自動重新啟動 Chrome。 這將導致系統當機,因為 Chrome 不支援在不完全重新啟動的情況下進行重新初始化。
- 重新啟動需求:發生當機後,必須重新啟動網站。 若問題持續存在,可能需要重新啟動整個應用程式集。
Core/.NET Core
- 應用程式池:Core/.NET Core 會自然強制使用獨立的應用程式池。
- 可靠性:此設定與 IronPDF 搭配使用效果良好。 變更應用程式內容通常無需完全重新啟動。
- 多站點支援:您可透過 IronPDF 在同一台 IIS 網頁伺服器上無縫運行多個網站。
- LiveReload:此功能不支援。
我們正積極改進偵測機制,並致力於針對這項日益罕見的設定需求,提供更清晰且更有幫助的例外訊息。
自 IronPDF 版本 2022.7.6986 起,請嘗試設定 Installation.SkipShutdown = true。 相關資訊可參閱 API 文件。
API 參考 - IronPDF 安裝
// 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 下載 19,014,616 | 版本: 2026.5 just released

