Syncfusion.Licensing.FusionLicenseProvider.GetLicenseType issue

Hello,

I'm having issue when upgrading from 28.2.9 to 31.1.19.

After I update all my Syncfusion Nuget packages and after adding a key on  "Syncfusion.Licensing.SyncfusionLicenseProvider.RegisterLicense()", I run my Maui application.

Then when trying to save to a MemoryStream from PdfLoadedDocument, I got the error: "Syncfusion.Licensing.FusionLicenseProvider.GetLicenseType".

My code is the following:
public static String PdfDocumentToPdfFile(PdfLoadedDocument document)

{

String base64String = string.Empty;


if (document != null)

{

try

{

using MemoryStream documentStream = new();

//! https://help.syncfusion.com/file-formats/pdf/working-with-document#performing-incremental-update-for-pdf-document

document.EnableMemoryOptimization = true;

document.FileStructure.IncrementalUpdate = false;


document.Save(documentStream);

document.Close();


base64String = ConversionTools.SaveDocumentAsBase64String(documentStream);

}

catch (Exception ex)

{

Console.WriteLine(ex.Message);

}

}

return base64String;

}

Error Message: 

Method not found: string Syncfusion.Licensing.FusionLicenseProvider.GetLicenseType(Syncfusion.Licensing.Platform)

Image_3085_1758054755703



1 Reply

IJ Irfana Jaffer Sadhik Syncfusion Team September 17, 2025 01:34 PM UTC

Hi Luis,

The error:

Method not found: string Syncfusion.Licensing.FusionLicenseProvider.GetLicenseType(Syncfusion.Licensing.Platform)

suggests that your application is referencing a version of Syncfusion.Licensing.dll that does not contain the method GetLicenseType. This typically happens when:

  • There's a version mismatch between Syncfusion packages.
  • The Syncfusion.Licensing NuGet package wasn't properly updated.
  • The old DLL is still being used due to caching or build artifacts.

Here’s a step-by-step guide to resolve this:

1. Ensure All Syncfusion Packages Are on the Same Version

Make sure all Syncfusion NuGet packages, including Syncfusion.Licensing, are updated to exactly version 31.1.19.

You can do this by running:

dotnet list package --outdated

Then update all Syncfusion packages:

dotnet add package Syncfusion.Licensing --version 31.1.19

2. Clean and Rebuild the Project

Sometimes old DLLs linger in the build folders. Do a full clean:

  • Delete bin and obj folders manually.
  • Clear NuGet cache:

dotnet nuget locals all --clear

  • Rebuild the solution.

3. Verify License Key Registration

Ensure the license key is registered before any Syncfusion component is initialized:

Syncfusion.Licensing.SyncfusionLicenseProvider.RegisterLicense("YOUR_LICENSE_KEY");

Place this in App.xaml.cs or Main() method as early as possible.


If you are still facing an issue, we request you to share with us the simplified sample to replicate the issue with us. So that we can assist with you further in this.


Loader.
Up arrow icon