Hi,
Hi Franklin,
Thank you very much for your quick answer, I have another doubt, I checked another project that I need ASPOSE to upgrade but in this case the solution does not have code pointed to a .lic file, it has a reference to the aspose.words.dll that is the GAC, so my question is, if I replace the dll with the new version is this all I need to do? is there other process I need to follow ?
I do not want the functionality to stop working on production.
thank you very much for your help.
Hi Franklin,
Thanks for the answer the question was because in the other project I can see clearly where in code the application was loading the .dlls and set it the .lic file, but in this project it has only a reference to the .dll and in code I cannot see any place where the .lic file is being called.
Hi Franklin,
The
license can be
loaded from a file or stream object. Aspose.Pdf for .NET will try to find the license in
the following locations:
- Explicit path.
- The folder that contains Aspose.Pdf.dll.
- The folder that contains the assembly that called Aspose.Pdf.dll.
- The folder that contains the entry assembly (your .exe).
- An embedded resource in the assembly that called Aspose.Pdf.dll.
The easiest way to set a license is to put the license file in the same folder as Aspose.Pdf.dll and specify just the file name without path as shown in the following example:
Aspose.Pdf.License license = new Aspose.Pdf.License();
license.SetLicense("Aspose.Pdf.lic");
Wherever the license file is placed, the code to initialize the license should existing in the application and license validation is performed when first object of any particular API is created.
Important Note: If you use are using any other Aspose.NET component along with Aspose.Pdf for .NET. Please specify the namespace for License like Aspose.Pdf.License.