VB.NET PDF: How to HTML5 PDF Viewer PDF Create PDF Export File & Page Process PDF Read PDF Write Form Process Document Protect Annotation & Drawing PDF Print WPF PDF Viewer Work with Other SDKs Barcode Read Barcode Create OCR Twain
On IIS
  |  
Home ›› XDoc.PDF ›› VB.NET PDF: On IIS

VB.NET PDF - VB.NET HTML5 PDF Viewer Deployment on IIS


How to Quick Deploy VB.NET HTML5 PDF Viewer on IIS





To use VB.NET RasterEdge XDoc.HTML5 Viewer on IIS, users should make some preparations for file viewing and manipulating on HTML5 document viewer. This page will navigate users how to deploy HTML5 PDF Document Viewer 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.




Deployment on IIS: Operation under Windows 7



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


  RasterEdge.Imaging.Annotation.dll


  RasterEdge.Imaging.Basic.Codec.dll


  RasterEdge.Imaging.Basic.dll


  RasterEdge.Imaging.DICOM.dll


  RasterEdge.Imaging.Drawing.dll


  RasterEdge.Imaging.Font.dll


  RasterEdge.Imaging.JBIG2.dll


  RasterEdge.Imaging.JPEG2000.dll


  RasterEdge.Imaging.Processing.dll


  RasterEdge.Imaging.SVG.dll


  RasterEdge.XDoc.Converter.dll


  RasterEdge.XDoc.Excel.dll


  RasterEdge.XDoc.HTML5Viewer.dll


  RasterEdge.XDoc.Office.Inner.Common.dll


  RasterEdge.XDoc.Office.Inner.Office03.dll


  RasterEdge.XDoc.PDF.dll


  RasterEdge.XDoc.PDF.HTML5Editor.dll


  RasterEdge.XDoc.PowerPoint.dll


  RasterEdge.XDoc.TIFF.dll


  RasterEdge.XDoc.Word.dll


  RasterEdge.XImage.AdvancedCleanup.Core.dll


  RasterEdge.XImage.OCR.dll


  RasterEdge.XImage.OCR.Tesseract.dll


  RasterEdge.XImage.Raster.Core.dll


  RasterEdge.XImage.Raster.dll


  RasterEdge.XImage.BarcodeCreator.dll ( add as you need)


  RasterEdge.XImage.BarcodeScanner.dll ( add as you need)


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, 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 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.




FAQ



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.