Home : When deploying my application using DotImage, why does it throw a license exception?
Q10058 - INFO: When deploying my application using DotImage, why does it throw a license exception?

If you are developing an application using DotImage that works fine on your development machine with your SDK license installed, but throws an license exception similar to the following message, it's likely that the license files were not embedded properly in the applications resource file.

"System.ComponentModel.LicenseException: A license key could not be found at the location 'c:\windows\assembly\gac\atalasoft.dotimage\1.1.1538.39227__2b02b46f7326f73b\atalasoft.dotimage.lic'.  Please purchase a license from www.atalasoft.com or request an evaluation key."

There could be two reasons for this problem.

1) The licenses.licx file is not located in the project root directory.  This is required for WinForms applications.  When dropping a DotImage control or component onto a form, this file will be automatically created.  If you are using just the class library, you will have to manually create the file and it should look like the following:

Atalasoft.Imaging.AtalaImage, Atalasoft.dotImage

When using the various add-ons such as Barcode Reader, PDF Rasterizer, JPEG2000, and JBIG2 compression, the following entries must be included in the licenses.licx for each add-on that is referenced.

Atalasoft.Imaging.Codec.Jpeg2000.Jp2Decoder, Atalasoft.dotImage.Jpeg2000
Atalasoft.Imaging.Codec.Jbig2.Jb2Decoder, Atalasoft.dotImage.Jbig2
Atalasoft.Imaging.Codec.Pdf.PdfDecoder, Atalasoft.dotImage.PdfRasterizer
BarcodeReader, Atalasoft.dotImage.BarcodeReader

The documentation explains the creating of the licenses.licx file in more detail.

2) The other reason this might be the problem is when creating a dll that references DotImage.  In that case, the license file cannot be embedded.  You will instead be required to place a reference to DotImage in the EXE that references this dll.  Search the KB on Embedded Component Licensing for more information on this approach, or contact sales.

If this is a WebForm application, a license is required for each server and you will need to copy your license file to the application's bin directory.

Here is another article describing what needs to be contained in your licx file based on what assemblies you are using.

Licensing an EXE for deployment:

Related Articles
Q10103 - INFO: What is the licenses.licx file?

Article Attachments
No Attachments Available.

Related External Links
No Related Links Available.
Help us improve this article...
What did you think of this article?


Tell us why you rated the content this way. (optional)
Approved Comments...
No user comments available for this article.

Powered By InstantKB.NET v1.3
Copyright © 2002, 2020. InstantASP Ltd. All Rights Reserved