Using ASP.NET MVC Best PDF Viewer
How to handle common exceptions, when open, view, display pdf file. Free Demo Project Download
Online Guide for customizing ASP.NET PDF Viewer & Editor using C#, html, javascript
1. Could not load file or assembly 'RasterEdge.Imaging.Annotation'
If your used RasterEdge DLLs version does not match your .net platform, you will view this Exception "Could not load file or assembly 'RasterEdge.Imaging.Annotation' or one of its dependencies."
To fix it, you need choose right RasterEdge DLLs. We have provided DLLs for .NET 4.0 (x64, x86), .NET 3.5 (x64, x86). And our SDK does not support anyCPU platform.
2. Could not load file or assembly 'RasterEdge.Imaging.Font.DLL'
Three RasterEdge DLLs are using C++ to develop, and the rest of them are using C#.
The three DLLs are:
RasterEdge.Imaging.Font.dll
RasterEdge.XImage.OCR.Tesseract.dll
RasterEdge.XImage.Raster.Core.dll
If your system has not installed C++ library, it will throw the following Exception "Could not load file or assembly 'RasterEdge.Imaging.Font.DLL' or one of its dependencies"
To fix it,
If you are using RasterEdge .net 2.0 dll, you must install Visual C++ 2005 Redistributable Package.
If you are using RasterEdge .net 4.0 dll, you must install Visual C++ 2010 Redistributable Package.
Please download the Microsoft VC++ redistribution package:
Microsoft Visual C++ 2010 Redistributable Package (x86)
https://www.microsoft.com/en-us/download/details.aspx?id=5555
Microsoft Visual C++ 2010 Redistributable Package (x64)
https://www.microsoft.com/en-us/download/details.aspx?id=14632
3. JavaScript error message: "fail to connect the server"
There are two reasons which may cause this error in Javascript.
1. Path setting incorrect
2. Server side error
Path Setting Incorrect
In file "index.html", it defines server side file UserCommandProcessHandler.ashx location.
We will use these two values to get the server side file UserCommandProcessHandler.ashx location. “http://your-host:port/{_rootpath}{_serverUrl}”
To verify that you have setup remote file “UserCommandProcessHandler.ashx location” correctly, please open your web browser, and navigate to “http://your-host:port/{_rootpath}{_serverUrl}”.
For example:
“http:// localhost:9091//RasterEdge_Resource_Files/UserCommandProcessHandler.ashx”
If you have setup the values correct, you can see the following content in the web browser.
If you get a “404 error”, your path setting is wrong.
If you get other server side error massage, please follow the next section.
4. Report errors to RasterEdge
If you get other error content in the web browser. There are some errors when IIS loading RasterEdge DLLs.
Please send the following information to support@rasteredge.com:
1. Details error information
2. SDK log data, located at "/RasterEdge_Cache/_log_files/"