IRONSOFTWAREHOME

ClickOnce 發佈錯誤

Curtis Chau
Curtis Chau
Updated: 2026年4月24日

當您嘗試運行使用 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.4

要找到此版本,運行應用程式後,開啟 Windows 資源管理器,然後點擊 CPU 分頁以選擇正在運行的程式。

版本差異

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

解決方案

核心問題是專案引用了本地 IronPDF 安裝的 DLL,而非已發佈文件中打包的版本。有兩種變通方法。

解決方案 1

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

解決方案 2

如果您的機器上的 IronPDF 安裝未被使用,請將其解除安裝以避免版本不匹配。

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

Curtis Chau
技術作家

Curtis Chau擁有Carleton大學的電腦科學學士學位,專精於前端開發,擁有Node.js、TypeScript、JavaScript和React的專業知識。Curtis熱衷於建立直觀且美觀的使用者介面,喜愛使用現代框架並建立結構良好、視覺吸引力的手冊。

...
閱讀更多

準備開始了嗎?

Nuget Downloads 20,645,046版本:2026.7剛剛發布

立即獲取您的免費30天試用密鑰
不需要信用卡或建立賬戶
C# 用於PDF的NuGet程式庫
使用NuGet安裝

版本: 2026.7

PM > Install-Package IronPdf
nuget.org/packages/IronPdf/
  1. 在解決方案資源管理器,右鍵點選參考,管理NuGet包
  2. 選擇瀏覽並搜尋"IronPdf"
  3. 選擇套件並安裝
C# PDF DLL
下載DLL

版本: 2026.7

立即下載

或者點擊此處下載Windows安裝程式。

  1. 下載並解壓IronPDF到類似~/Libs的位置,位於您的解決方案目錄中
  2. 在Visual Studio解決方案資源管理器,右鍵點選參考。選擇瀏覽,"IronPdf.dll"

授權從$999

有問題嗎?聯絡我們的開發團隊。

Key in blue circle

立即免費取得 30 天試用金鑰

bullet_checked無需信用卡或建立帳號
  • Logo Aetna
  • Logo NASA
  • Logo GE
  • Logo Porsche
  • Logo USDA
  • Logo Qatar
Join Millions of Engineers who’ve tried IronPDF
預訂您的免費現場演示
Booking Badge

受到全球數百萬工程師的信任

Iron Software的客戶標誌
獲取您的無義務諮詢
填寫以下表格或電子郵件sales@ironsoftware.com
您的詳細資訊將始終保密
受到全球數百萬工程師的信任
Iron Software的客戶標誌
立即獲取您的30天試用金鑰
無需信用卡或帳戶建立