In This Topic

DocuVieware server deployment

In This Topic
 Redistributing required files

DocuVieware being based on GdPicture.NET therefore the same distribution rules apply.

Before Starting:

All files which will be redistributed are located in: [INSTALLATION FOLDER]/Redist/. and will be copied to your application Bin/ folder.

Here are the mandatory files that need to be deployed no matter what the features you are actually using:

  • For 32-bit operating systems deployment: copy GdPicture.NET.14.WEB.DocuVieware.dll, GdPicture.NET.14.filters.dll, GdPicture.NET.14.jbig2.encoder.dll, GdPicture.NET.14.image.gdimgplug.dll and GdPicture.NET.14.Imaging.Rendering.Skia.dll.
  • For 64-bit operating systems deployment: copy GdPicture.NET.14.WEB.DocuVieware.dll, GdPicture.NET.14.filters.64.dll, GdPicture.NET.14.jbig2.encoder.64.dll, GdPicture.NET.14.image.gdimgplug.64.dll and GdPicture.NET.14.Imaging.Rendering.Skia.64.dll.

If your application is using OCR features it requires this additional library:

  • For 32-bit operating systems deployment: GdPicture.NET.14.ocr.tesseract.3.dll.
  • For 64-bit operating systems deployment: GdPicture.NET.14.ocr.tesseract.3.64.dll.

If your application is using 1D Barcode Recognition features it requires this additional library:

  • For 32-bit operating systems deployment: GdPicture.NET.14.barcode.1d.reader.dll.
  • For 64-bit operating systems deployment: GdPicture.NET.14.barcode.1d.reader.64.dll.

If your application is using 2D Barcode Recognition features it requires this additional library:

  • For 32-bit operating systems deployment: GdPicture.NET.14.barcode.2d.reader.dll.
  • For 64-bit operating systems deployment: GdPicture.NET.14.barcode.2d.reader.64.dll.

If your application is using Forms Processing features it requires this additional library:

  • For 32-bit operating systems deployment: GdPicture.NET.14.omr.dll.
  • For 64-bit operating systems deployment: GdPicture.NET.14.omr.64.dll.

If your application is using MICR, Color Detection and/or MRC features it requires this additional library:

  • For 32-bit operating systems deployment: GdPicture.NET.14.document.analyzer.dll.
  • For 64-bit operating systems deployment: GdPicture.NET.14.document.analyzer.64.dll.
You can copy both 32-bit and 64-bit libraries if you are not sure which one you need, the system will then automatically decide what libraries it should use.
 Enabling JSON compression on IIS 7.x

DocuVieware uses JSON for client/server communication and compression is possible to minimize bandwidth usage and increase performances.

To do this, you need to edit the applicationHost.config file that is located in the %windir\System32\inetsrv\config directory on your server.

You need to look for the line <add mimeType="message/*" enabled="true" /> in the httpCompression section, dynamicTypes sub-section and add <add mimeType="application/json" enabled="true" /> after it.
After modification it should give your something similar to this:

Copy Code
    <httpCompression directory="%SystemDrive%\inetpub\temp\IIS Temporary Compressed Files">

        <scheme name="gzip" dll="%Windir%\system32\inetsrv\gzip.dll" />

        <dynamicTypes>

            <add mimeType="text/*" enabled="true" />

            <add mimeType="message/*" enabled="true" />

            <add mimeType="application/json" enabled="true" />

            <add mimeType="application/x-javascript" enabled="true" />

            <add mimeType="*/*" enabled="false" />

        </dynamicTypes>

        <staticTypes>

            <add mimeType="text/*" enabled="true" />

            <add mimeType="message/*" enabled="true" />

            <add mimeType="application/x-javascript" enabled="true" />

            <add mimeType="application/atom+xml" enabled="true" />

            <add mimeType="application/xaml+xml" enabled="true" />

            <add mimeType="*/*" enabled="false" />

        </staticTypes>

    </httpCompression>
 Licensing for development

For the entire development phase, you need to use your GdPicture.NET Ultimate (or a GdPicture.NET trial license key). You cannot develop and/or debug using your server deployment key.

This development key should be used in the Global.asax of your project as demonstrated in this tutorial.

 Licensing for production deployment

There are two ways to proceed:

  1. You need to replace your GdPicture.NET Ultimate or GdPicture.NET trial license key by your server deployment key (which is much longer and much more complicated than the development key) in your Global.asax project file.
  2. If you want to avoid recompiling your project for deployment, for instance in case you have multiple servers to deploy to, you can simply comment the Global.asax licensing line and create a new text file in your project Bin/ directory called dvlicense.txt and put your server deployment license key in it.

Please note that it is absolutely mandatory to use either one way or the other but not both at the same time otherwise DocuVieware will behave as if it was in development mode.

See Also