无法加载文件或程序集 'PDFLibNet' 或其依赖项之一

Could not load file or assembly 'PDFLibNet' or one of its dependencies

我 运行 遇到一个问题,它说 pdf 库与我正在使用的 .net 版本不匹配。

问题是我在两个

上使用相同的版本
Microsoft .NET Framework Version:2.0.50727.9031; 
ASP.NET Version:2.0.50727.9031;
PDF Lib: v2.0.50727;

LOG: Attempting download of new URL file:///C:/Projects/bin/PDFLibNet.DLL.
ERR: Failed to complete setup of assembly (hr = 0x8013101b). Probing terminated.
[BadImageFormatException: Could not load file or assembly 'PDFLibNet' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.]

出于某种原因弄清楚它在我的 webservice/BIN 文件夹中引用了错误的文件,在我删除 .dll 文件后,它提取了新文件并修复了它!