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.4.0.4

Please note: 要查找此版本,请运行程序,打开 Windows 资源管理器,然后单击"CPU"选项卡以选择正在运行的进程。

版本差异

您可能已经注意到 IronPDFInterop.dll 的路径是来自 IronPDF 安装的默认路径。

解决方案

核心问题是项目引用了本地 IronPDF 安装中的 DLL,而不是已发布文件中封装的版本。有两个解决方案。

解决方案 1

请更新现有的IronPDF安装以匹配所需版本2025.4.4。如果成功,Windows资源管理器中显示的IronPdfInterop.dll版本应该是2025.4.0.4,而不是过时的版本。

解决方案 2

如果您计算机上的 IronPDF 安装未使用,请卸载它以避免版本不匹配。

有关如何安装和创建ClickOnce项目的更多信息,请参阅微软官方文档

Curtis Chau
Technical Writer

Curtis Chau holds a Bachelor’s degree in Computer Science (Carleton University) and specializes in front-end development with expertise in Node.js, TypeScript, JavaScript, and React. Passionate about crafting intuitive and aesthetically pleasing user interfaces, Curtis enjoys working with modern frameworks and creating well-structured, visually appealing manuals.

...
Read More

准备开始了吗?

Nuget Downloads 20,389,208版本:2026.7刚刚发布

立即获取您的免费30 天试用密钥
无需信用卡或创建账户

免费试用 IronPDF

5 分钟内设置完成

C# PDF DLL

下载 DLL

立即下载

或在此处下载 Windows 安装程序。

  1. 下载并解压 IronPDF 到您的解决方案目录中的 ~/Libs 之类的位置
  2. 在 Visual Studio 解决方案资源管理器中,右键点击引用。选择浏览,“IronPDF.dll”
C# 用于 PDF 的 NuGet 库

通过 NuGet 安装

                  Install-Package IronPdf
                
nuget.org/packages/IronPdf/
  1. 在解决方案资源管理器中,右键点击引用,管理 NuGet 包
  2. 选择浏览并搜索 “IronPDF”
  3. 选择包并安装
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 related to IronPDF Product Demo

深受全球数百万工程师信赖

Iron Software 的客户徽标
获取您的无义务咨询
填写下面的表格或通过sales@ironsoftware.com
您的资料将始终保密。
深受全球数百万工程师信赖
Iron Software 的客户徽标
立即获取您的免费30 天试用密钥
无需信用卡或创建账户