.NET Framework4.0 的 PDFLib.NET dll?

发布于 2025-01-02 05:24:52 字数 477 浏览 0 评论 0原文

我在.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) 

有什么建议吗?

I have developed a searchable PDF viewer in .NET2.0. We are now upgrading our application to 4.0 so that PDFLibNet.dll is compatible with this version.

The message is:

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) 

Any suggestions?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

指尖上的星空 2025-01-09 05:24:52

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

但下面的链接解释了如何将构建升级到 4.0,但失败了。仅适用于 3.5

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

PDFLib.NET dll does not support to 4.0 but compatible with 3.5!

But the below link explains that how to take a build to 4.0 it fails. works only with 3.5

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

忆伤 2025-01-09 05:24:52

如果其他人遇到同样的问题,可以从

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

使用密钥文件可以轻松退出 进行汇编

使用sn -R PDFLibNet.dll PDFLibNet.snk

之后应该可以工作。

In case if someone else is having the same problem, the .NET 4 version of the assembly and the public/private key file can be downloaded from

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

Using the key file it is easy to resign the assembly using

sn -R PDFLibNet.dll PDFLibNet.snk

It should work after that.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文