Aspose upgrade

Hi,


We recently renew our Aspose license and I need to upgrade the current solutions that are using the old .dll of ASPOSE.
I downloaded the free trial and got the .dlls replaced in the solution, then I changed the code to point to the new .lic file.

Is this all I need to do?
Am I doing it right ?

any help will be appreciate it.

Thank you very much.

Hi Franklin,


Thanks for contacting support.

Yes you are correct. In your solution, you only need to point the code to new license file. In case you encounter any issue, please feel free to contact.

PS, In order to properly use the license, you need to be certain that product versions which you are using are released/published before the license expiry date.

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,


If an application is already developed using particular product release, you cannot simply replace the product binaries. In fact you need to once compile the solution/project using updated product version. Now concerning to license, you can simply replace the old license file with new one and there should not be any problem.

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.

I replaced the binaries and with the ones I downloaded I got the converted file with a legend “Evaluation only”" so you say there should be a place where the old .lic file is and here is where the new file should be replace ?

thank you very much any help you can provide is appreciate it.


Hi Franklin,


Thanks for sharing the details.

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:


  1. Explicit path.
  2. The folder that contains Aspose.Pdf.dll.
  3. The folder that contains the assembly that called Aspose.Pdf.dll.
  4. The folder that contains the entry assembly (your .exe).
  5. 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.