ClickOnce 發布錯誤

Curtis Chau
Curtis Chau
已更新: 2026年7月21日

當您嘗試執行使用 IronPDF 的已發布 ClickOnce 專案時,可能會遇到以下執行時間錯誤。

ERROR: Error while deploying IronPdf Chrome renderer: 'Multiple issues occurred while trying to deploy Chrome (Failed to locate 'IronInterop' at 'C:\iron testing\NETPublish(ClickOnce)\IronPdfZipClickOnce\bin\Debug\net8.0-windows\') (Failed to locate 'IronInterop' at 'C:\iron testing\NETPublish(ClickOnce)\IronPdfZipClickOnce\bin\Debug\net8.0-windows') (Invalid assembly version for 'IronInterop' (actual: 2025.2.0.15; expected: 2025.4.0.16). This version of IronPdf requires updated native dependencies. Please clear your build output directory of old assemblies so IronPdf can automatically download the new dependencies at runtime. Alternatively, you may add NuGet package IronPdf.Native.Chrome.Windows version 2025.4.16 to your project and rebuild.)[Issue Code IRONPDF-CHROME-DEPLOYMENT-ERROR-WIN].To learn more about making an engineering support request please visit: <a href=https://ironpdf.com/troubleshooting/engineering-request-pdf/>. To learn how to solve this issue please read https://ironpdf.com/troubleshooting/error-while-deploying-chrome-dependencies/ [Issue Code IRONPDF-CHROME-DEPLOYMENT-ERROR-WIN]
Text

此錯誤可能會發生,因為專案使用的是本地IronPDF安裝中的IronPdfInterop.dll,而不是與可執行檔一起封裝的版本。如果您檢查執行中的應用程式所使用的DLL版本,您會看到其版本是2025.2.0.15,而不是所需的發行版本,2025.4.0.16。

請注意: 要找到此版本,運行程式,打開Windows資源管理器,然後點選CPU選項卡以選擇正在運行的進程。

版本差異

您可能已經注意到IronPdfInterop.dll的路徑是來自IronPDF安裝的默認路徑。

解決方案

核心問題在於專案引用的是本地 IronPDF 安裝目錄中的 DLL 文件,而不是已發布文件中打包的 DLL 文件。對此有兩種解決方法。

方案一

請更新現有的IronPDF安裝以匹配所需版本2025.4.16。如果成功,Windows資源管理器中顯示的IronPdfInterop.dll版本應為2025.4.0.16而不是過時的版本。

解決方案 2

如果您的電腦上未使用 IronPDF,請將其卸載,以避免版本不符。

有關如何安裝和建立ClickOnce專案的更多資訊,請參考Microsoft的官方文件這裡。

Curtis Chau 擁有卡爾頓大學計算機科學學士學位,專注於前端開發,擅長於 Node.js、TypeScript、JavaScript 和 React。Curtis 熱衷於創建直觀且美觀的用戶界面,喜歡使用現代框架並打造結構良好、視覺吸引人的手冊。

閱讀更多

準備好開始了嗎?

NuGet 下載次數 22,198,312版本:2026.11剛剛發布