Tech Specs
How-to C#
Home ›› XDoc.PDF ›› C# PDF: HTML5 PDF Viewer& Editor On IIS

C#.NET PDF HTML5 PDF Viewer & Editor SDK - Deployment on IIS

Quick Deploy C#.NET HTML5 PDF Viewer or HTML5 PDF Editor Control on IIS

Best .NET HTML5 PDF Viewer Control for PDF document viewing on IIS in C#.NET project

Support ASP.NET MVC, IIS, ASP.NET Ajax, Azure cloud service, DNN (DotNetNuke) and SharePoint

An advanced .NET HTML5 PDF Editor provides C# users multiple functionalities to edit adobe PDF page and file in IIS program

Free demo package and components are provided for quick integration in IIS site to manipulate PDF document in C#.NET

Easy to be installed and deployed on IIS site using online tutorial

PDF document Viewer and Editor library are compatible with ASP.NET web based project

HTML5 PDF Viewer and Editor are based on .NET framework 2.0 ans support any .NET Framework version from 2.0 to 4.6

Compatible with all Windows operating system in both 32-bit and 64-bit

Preparation for ASP.NET HTML5 PDF Viewer & Editor Deployment on IIS

To use C#.NET RasterEdge XDoc.HTML5 PDF Viewer or XDoc.HTML5 PDF Editor on IIS, C# users should make some preparations for file viewing and manipulating on HTML5 PDF viewer and editor. This page will navigate users how to deploy HTML5 PDF Document Viewer and HTML5 PDF Document Editor on IIS.

In order to reduce the size of SDK package, dlls are not put into XDoc.PDF.HTML5 Viewer Demo/Bin, all dlls can be found under RasterEdge.DocImagSDK/Bin directory.

Integrate ASP.NET HTML5 Viewer & Editor to IIS

Copy corresponding DLL(x86 or x64) in the download package to the “Bin” folder of the test project.












  RasterEdge.XDoc.PDF.HTML5Viewer.dll ( for HTML5 PDF Viewer deployment)

  RasterEdge.XDoc.PDF.HTML5Editor.dll ( for HTML5 PDF Viewer deployment)









After adding relative dlls, configure the Web.config:

  If your IIS server .NET framework is 4.0 or higher, please copy the content in the "Web(for .net4.0 or higher).Config" to "Web.config".

  If your IIS server .NET framework is 2.0 to 3.5, please use the "Web.config".

After steps above, you can deploy your project to IIS server.

  Open Internet Information Services Manager;

  Right-click “Sites” and select “Add Web Site”;

  According to your situation, set the “Site name”, and set the “Physical path” to the place where you store XDoc.PDF.HTML5 Viewer or XDoc.PDF.HTML5 Editor Demo. Last, set the “Port” that monitors the application.

  Click ok to complete deploy your project;

  Click "Application Pools", click "Set Application Pool Defaults…" in the right panel, and set the value "Enable 32-Bit Applications" in accordance with the selected DLL (x86 set true, x64 set false) in the pop-up window.


Q: If you configure IIS to run and 500.19 error occurs, then it may be caused by:

  1. Not registered the .NET Framework to the IIS. (One of reasons: install a .net framework before the installation of iis.)

  2. The site configured in IIS has no sufficient authority to operate. (Modify permission)

  A: There are some solutions:

           1. cd  to  C:\Windows\Microsoft.NET\Framework64\v2.0.50727,Command  to  re-register .NET Framework to the IIS: aspnet_regiis-i.

           2. Right-click the correspond site-> Edit Permissions -> Security -> Group or user names -> Edit -> Add -> Add Everyone usersgiven Full Control permissions.

Q: Could not load file or assembly “RasterEdge.Imaging.Annotation” or any other one assembly or one of its dependencies. An attempt was made to load a program with an incorrect format.”

  A: Please check your IIS configure as following ways:

           1. If you are using the .NET framework 4.0 or higher dlls, confirm that Web.config is using the content in Web(for .net4.0 or higher).Config file.

           2. After checking first step, if you are still facing the issue, confirm that:

              a. If you are using x64 dlls, "Application Pools" -> "Set Application Pool Defaults…" -> "Enable 32-Bit  Applications" should be false.

              b. If you are using x86 dlls, "Application Pools" -> "Set Application Pool Defaults…" -> "Enable 32-Bit  Applications" should be true.