Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/csharp-4.0/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Asp.net 用于.NET Framework4.0的PDFLib.NET dll?_Asp.net_C# 4.0_Pdflib - Fatal编程技术网

Asp.net 用于.NET Framework4.0的PDFLib.NET dll?

Asp.net 用于.NET Framework4.0的PDFLib.NET dll?,asp.net,c#-4.0,pdflib,Asp.net,C# 4.0,Pdflib,我在.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 ver

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

有什么建议吗?

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

但是下面的链接解释了如何将一个构建版本升级到4.0,它会失败。仅适用于3.5


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

使用密钥文件可以很容易地使用

sn-R PDFLibNet.dll PDFLibNet.snk


之后应该可以工作。

这解决了我在生成计算机上的问题,出现以下错误:SGEN:无法加载文件或程序集“PDFLibNet,Version=1.0.6.8,Culture=neutral,PublicKeyToken=26d87f7d66fb2aee”或其依赖项之一。强名称验证失败。(来自HRESULT的异常:0x8013141A)