3

我在 .NET2.0 中开发了一个可搜索的 PDF 查看器。我们现在将我们的应用程序升级到 4.0,以便 PDFLibNet.dll 与此版本兼容。

消息是:

Could not load file or assembly 'PDFLibNet, Version=1.0.6.8, Culture=neutral, 
PublicKeyToken=26d87f7d66fb2aee' or one of its dependencies. 
Strong name signature could not be verified.  The assembly may have been tampered with, or 
it was delay signed but not fully signed with the correct private key. (Exception from     HRESULT: 0x80131045) 

有什么建议么?

4

2 回答 2

2

PDFLib.NET dll 不支持到 4.0 但兼容 3.5!

但是下面的链接解释了如何构建到 4.0 它失败了。仅适用于 3.5

http://blogs.lessthandot.com/index.php/DesktopDev/MSTech/use-pdfviewernet-in-a-project

于 2012-02-25T06:12:32.370 回答
2

如果其他人遇到同样的问题,可以从 .NET 4 版本的程序集和公钥/私钥文件下载

http://code.google.com/p/pdfviewernet/source/browse/trunk/PDFView/?r=78#PDFView%2FPDFLibNet

使用密钥文件很容易使用

sn -R PDFLibNet.dll PDFLibNet.snk

它应该在那之后工作。

于 2012-08-31T20:45:59.027 回答