We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Aspose PDF export still says Evaluation mode only for .Net

Hi Team,


I’m facing an issue with setting the license.
I’m already used .Net evaluation mode pdf all in my applications PDF export.
So i planned to go for buying an license before that i went for a temp license so i downloaded the temp license today. And set that in my Global.Asax “application start()” method like below

try
{
Aspose.Pdf.License lic = new Aspose.Pdf.License();
lic.SetLicense(Server.MapPath(“Aspose/Aspose.Pdf.lic”));
lic.Embedded = true;
}
catch (Exception ex)
{
Utility.Log.Error(ex.ToString());
}

But when i went again to export PDF it still says the “evaluation mode only”.
Why this issue raised? Am i setting the license in wrong location? Or anything?
I need to use this license over all my application pdf exports, thats way i set this in application start method. Or do i need to set this each time before i export means before i create this below
Aspose.Words.Document doc = new Aspose.Words.Document()
Kindly let me know that problem

Hi Antony,


Thanks for contacting support.

If you are using more than one API, you need to individually initialize the license for each API.

In order to initialize license for Aspose.Pdf for .NET, please try using following code lines.

[C#]

Aspose.Pdf.License
license= new Aspose.Pdf.License();<o:p></o:p>

license.SetLicense(@“C:\Aspose.Total.lic”);


In order to initialize license of Aspose.Words for .NET, please try using following code lines.
[C#]

Aspose.Words.License
licword = new Aspose.Words.License();<o:p></o:p>

licword.SetLicense(@“C:\Aspose.Total.lic”);


In case the problem still persists, please share the license file so that we can test the scenario at our end. Please follow the instructions specified over How to send a license?

We are sorry for this inconvenience.