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,而不是已发布文件中封装的版本。有两个解决方案。

解决方案 1

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

解决方案 2

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

有关如何安装和创建 ClickOnce 项目的更多信息,请参考 Microsoft 的官方文档 这里。

Curtis Chau 拥有卡尔顿大学的计算机科学学士学位,专注于前端开发,精通 Node.js、TypeScript、JavaScript 和 React。他热衷于打造直观且美观的用户界面,喜欢使用现代框架并创建结构良好、视觉吸引力强的手册。

阅读更多

准备开始了吗?

NuGet 下载量 22,198,312版本:2026.11刚刚发布