IronPDF 故障排除 IronPdfAssemblyVersionMismatchException Version Mismatch Exception Curtis Chau 已更新:六月 1, 2025 Download IronPDF NuGet 下载 DLL 下载 Windows 安装程序 Start Free Trial Copy for LLMs Copy for LLMs Copy page as Markdown for LLMs Open in ChatGPT Ask ChatGPT about this page Open in Gemini Ask Gemini about this page Open in Grok Ask Grok about this page Open in Perplexity Ask Perplexity about this page Share Share on Facebook Share on X (Twitter) Share on LinkedIn Copy URL Email article This article was translated from English: Does it need improvement? Translated View the article in English Invalid assembly version for 'IronInterop' (actual: 2022.x.x.xxxx; expected: 2022.x.x.xxxx). 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 version 2022.x.xxxx to your project and rebuild. 当 IronPdf.Slim 包和其依赖由于版本不匹配而不兼容时会发生此错误。 可能原因 错误通常出现在仅更新 IronPdf.Slim 包而其依赖仍然过时时。 IronPdf.Slim 包的关键依赖包括: IronSoftware.Common IronSoftware.System.Drawing IronPdf.Native.Chrome IronPdf.Native.Chrome.Windows (适用于 Windows) IronPdf.Native.Chrome.Linux (适用于 Linux) IronSoftware.Native.PdfModel 这些依赖可能不会与 IronPdf.Slim 一起自动更新,特别是在旧版本中。 解决方案 为了解决此问题,请考虑以下选项: 重新安装 IronPDF 包:使用 Visual Studio 中的 NuGet 包管理器卸载所有与 IronPDF 相关的包,然后重新安装最新版本。 这可确保移除旧的二进制文件,防止运行时冲突。 请参考 NuGet 页面了解兼容的依赖版本。 切换到 IronPdf:卸载 IronPdf.Slim 及其依赖,然后安装完整的 IronPdf 包。 这将自动包含所有必要的兼容版本的依赖。 启用依赖的自动下载:卸载提到的依赖,使用以下代码与 IronPdf.Slim 一起使用: // Enables automatic download of native binaries during runtime IronPdf.Installation.AutomaticallyDownloadNativeBinaries = true; // Enables automatic download of native binaries during runtime IronPdf.Installation.AutomaticallyDownloadNativeBinaries = true; ' Enables automatic download of native binaries during runtime IronPdf.Installation.AutomaticallyDownloadNativeBinaries = True $vbLabelText $csharpLabel 这将在首次运行时下载正确的本机二进制文件和依赖。 请注意,这需要互联网连接,并可能需要一些时间。 如果需要进一步的帮助,请提交工程请求。 Curtis Chau 立即与工程团队聊天 技术作家 Curtis Chau 拥有卡尔顿大学的计算机科学学士学位,专注于前端开发,精通 Node.js、TypeScript、JavaScript 和 React。他热衷于打造直观且美观的用户界面,喜欢使用现代框架并创建结构良好、视觉吸引力强的手册。除了开发之外,Curtis 对物联网 (IoT) 有浓厚的兴趣,探索将硬件和软件集成的新方法。在空闲时间,他喜欢玩游戏和构建 Discord 机器人,将他对技术的热爱与创造力相结合。 准备开始了吗? Nuget 下载 16,154,058 | 版本: 2025.11 刚刚发布 免费 NuGet 下载 总下载量:16,154,058 查看许可证