Hello,
I'm successfully converting an HTML document to PDF. I'm sure I have a valid license and still the PDF shows the message: Created with a trial version of Syncfusion PDF Library". The version I'm using is 24.2.9. It was working in a previous version but I don't remember the number.
Could you please help?
Thanks,
Erick
Another comment. It works on a dotnet worker service but doesn't work on an API application. I'm placing the Syncfusion.Licensing.SyncfusionLicenseProvider in Program.cs after
var builder = WebApplication.CreateBuilder(args);
and before
var app = builder.Build();
Thanks,
Erick
I found the problema. There are several projects in my solution and one of them had missing the Syncfusion libraries in the csproj file.
Thanks,
Erick
Hi Erick,
We suspect that you have not registered your license key before initialization of syncfusion control in the project or the Syncfusion.Licensing.dll is not referred properly with correct version.
Syncfusion
license keys are version and platform-specific and the
generated license key is just a string that needs to be registered before any
Syncfusion control is initiated.
If you are using any EJ2 JavaScript files, please follow the procedures below to generate and register the license key.
We have introduced license key validation for Essential JS2 platforms from the 2022 Volume 1 release. This licensing key validation will enforce the developer to register a valid licensing key in an application while referring to any of the latest packages, either from npm or CDN.
Refer to the following blog for more information,
To know
about registering the license key,
https://ej2.syncfusion.com/aspnetcore/documentation/licensing/how-to-register-in-an-application
Note: If you are using any template file for generating the PDF document, please ensure that the original template file doesn’t has any license trial warning.
Find the below knowledge base article to know about which version
license key should use in the application,
https://www.syncfusion.com/kb/8951/which-version-syncfusion-license-key-should-i-use-in-my-application
Sometimes, old Syncfusion packages
might be referred from NuGet cache in the projec
So, could you please try cleaning your project, clear the NuGet cache from both “%userprofile%” folder and NuGet installed location, deleting the bin\obj folders and rebuild your application, then check whether it resolves the issue?
If you are facing any licensing warning even after registering the proper license key, refer to the below links to resolve the license warning message.
If still not resolved, please share us the following details to investigate issue from our side,
Regards,
Prashanth S.