DuidelikeDave / pdfviewernet

Automatically exported from code.google.com/p/pdfviewernet
0 stars 0 forks source link

Error when using PDFLibNet in asp.net 4.0 #13

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Add project to asp.net V4.0
2. Run solution, when accessing PDFWrapper get following error:
"Declaration referenced in a method implementation cannot be a final method.  
Type: 'PDFLibNet.xPDFBinaryReader'.  Assembly: 'PDFLibNet, Version=1.0.6.8, 
Culture=neutral, PublicKeyToken=26d87f7d66fb2aee'."

Original issue reported on code.google.com by cvoronin...@gmail.com on 30 Jul 2012 at 2:51

Attachments:

GoogleCodeExporter commented 9 years ago
Did you ever fix this?  I'm having the same issue.

Original comment by byz...@gmail.com on 25 Oct 2012 at 5:02

GoogleCodeExporter commented 9 years ago
the dll for .net framework 4.0 is provided on 
http://code.google.com/p/pdfviewernet/source/browse/#svn%2Ftrunk%2FPDFView%2FPDF
View%2Flib%2FNet4.0

but when i am using this, its giving an error

"Could not load file or assembly 'PDFLibNet' 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)"

Please let me know the solution, it's become a bottleneck for the application

Original comment by zubair.a...@gmail.com on 21 Dec 2012 at 1:12

GoogleCodeExporter commented 9 years ago
The solution was the grab the source code from the project. 
http://code.google.com/p/pdfviewer-win32/

I had no luck with the source code from this project as my compiler was 
complaining about some C++ header files.

I opened the xpdfWin-Interop-2010 solution file in VS 2010  and compiled it 
without issue with the target framework been .NET 4.0 (I also installed the 
Microsoft Visual C++ 2010 Redistributable Package).

If your solution requires a strong key, remember to include it in the build.

Original comment by dcchs...@gmail.com on 4 Mar 2013 at 5:47