使用iTextsharp.dll创建pdf时出错
本文关键字:出错 pdf 创建 iTextsharp dll 使用 | 更新日期: 2023-09-27 18:15:12
运行 c# 项目时发生错误,该项目使用itextsharp.dll生成pdf文件
错误内容:
"Could not load file or assembly 'itextsharp, Version=5.4.1.0, Culture=neutral, PublicKeyToken=*****or one of its dependencies. The located assembly's manifest definition does not match the assembly reference'
有人能帮我吗?
首先检查解决方案中引用的版本是否与5.4.1.0匹配。您可以尝试在项目参考文件夹中选择引用,并将"Specific Version"设置为false。
有关更多提示,请参见所定位的程序集's清单定义与程序集引用
你必须粘贴以下4个文件
itextsharp.dll,
itextsharp.pdfa.dll,
itextsharp.xml,
itextsharp.xtra.dll