.NET Framework4.0 的 PDFLib.NET dll?
我在.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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(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
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
如果其他人遇到同样的问题,可以从
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.