We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Can not find license file

I am using pdf library to create pdf's.

I got in version 44 and 41 the following error:

System.IO.FileNotFoundException: 'Could not load file or assembly 'Syncfusion.Licensing, Version=20.4460.0.44, Culture=neutral, PublicKeyToken=632609b4d040f6b4'. The system cannot find the file specified.'

with the corresponding adjustment for version 41 (20.4460.0.41).

Thanks in advance.

Regards,

Sócrates A Rivera R

sa.riverar@gmail.com


6 Replies

IJ Irfana Jaffer Sadhik Syncfusion Team January 30, 2023 01:07 PM UTC

We have attached a video and sample for your reference:

sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/WinformSample-662904969

video:https://www.syncfusion.com/downloads/support/directtrac/general/ze/ScreenCapture_1-30-2023_4.54.22_PM.mp4-1435125925

The reported exception mighthttps://www.syncfusion.com/downloads/support/directtrac/general/ze/ScreenCapture_1-30-2023_4.54.22_PM.mp4-1435125925 zbe due to a mismatched product version of Syncfusion assemblies. So, we request you refer to the same product version of Syncfusion assemblies to resolve this issue. Please refer to the below link,

KB: https://www.syncfusion.com/kb/4661/how-to-resolve-could-not-load-file-or-assembly-error

Note: If adding multiple Syncfusion assemblies to your project, it is dependent assemblies must be of the same assembly version, if they are different then the error will occur.

Please follow the below steps if you are using NuGet packages on your side.

  1. Uninstall existing all Syncfusion NuGet in your solution.
  2. Clear the NuGet cache and delete the same version Syncfusion NuGet package from the .nuget folder (C:\Users\{User Name}\.nuget\packages)
  3. First, install "Syncfusion.Pdf.Winforms" NuGet from the NuGet Package Manager.
  4. Then, install the remaining Syncfusion control NuGet which is required for your solution.
  5. Clean and rebuild


SA socrates anibal rivera rivera January 30, 2023 11:47 PM UTC

Hello  Irfana Jaffer Sadhik.

Thank you very much for the information.

It still does not work.

Maybe the problen has to do with the inner version of the files involved.

I require Sy..PDF.Winforms and what is loaded is three packages: sy...PDF.Base; sy...Licensing and sy...Compression.Base.

I think the problem is that inner versions do not match.

I sent the evidence in attached pdf file.

Thanks in advance.

Best regards,

Sócrates A Rivera R

sa.riverar@gmail.com


Attachment: prueba_794ae3c0.zip


IJ Irfana Jaffer Sadhik Syncfusion Team January 31, 2023 12:37 PM UTC

Syncfusion follows assembly version format based on the .NET Framework versions. 

Find below the details to know about Syncfusion Assembly Version Format for different .NET Framework versions 

https://help.syncfusion.com/common/essential-studio/assembly-information#assembly-version-format

We have checked the PDF.Winforms NuGet; the framework versions are correct.

Please make sure that every NuGet package/Assemblies reference are same v20.4.0.41. Also, verify that the csproj and packages.config files references have been referred with the updated version (20.4.0.41)


To avoid run time error we should set copy local as true. Copy Local determines whether a reference is copied to the project output path.


So, you should set “CopyLocal” as True to Syncfusion.Licensing.dll along with all other Syncfusion assemblies and ensure that the Syncfusion.Licensing.dll assembly also present in the output folder\deployment folder of your application.


Refer the below knowledge base articles to set copy local as true,

https://www.syncfusion.com/kb/4808/how-to-resolve-server-error-could-not-load-or-assembly-when-publishing-an-application


If still you are facing the reported issue,  please share us the following details to check issue from our side, 
  

1. Screenshot of the Syncfusion assemblies with its version details referred in your project

2. TargetFrameWork and Platform of your application.



SA socrates anibal rivera rivera February 1, 2023 06:49 PM UTC

Dear Irfana Jaffer Sadhik.

I have followed the steps that you indicated.

The problem persists.

Have you taken a look to my attached file (prueba_794ae3c0.zip) ?

It shows clearly the different versions of the dll files.

You have a problem in these files (or code that searches for the files in question).

Can you please take a look to the attached file?

Contact me again with this problem in case you do not see any problem in these files version.

I can send you the project (mini) complete if you like.

Thanks in advance.

Best regards,

Sócrates A Rivera R

sa.riverar@gmail.com



SA socrates anibal rivera rivera replied to Irfana Jaffer Sadhik February 3, 2023 09:48 PM UTC

Hello  Irfana Jaffer Sadhik.

I still have this problem.

Steps to reproduce problem.

Open VS2022 (Microsoft Visual Studio Community 2022 (64-bit) - Current Version 17.1.4).

Create Console App (C#/Windows/Console).

Include package Syncfusion.Pdf.Winforms (20.4.0.41).

Do program.cs with the same code as in your sample (January 30) above.

That's it.

Please find attached the result in my machine.

A note. I can't find 'Copy Local' setting, nor Packages.Config file.

Thank you very much in advance.

Best regards,

Sócrates A Rivera R

sa.riverar@gmail.com


Attachment: PruebaSync_1653f441.zip


IJ Irfana Jaffer Sadhik Syncfusion Team February 6, 2023 09:28 AM UTC

We have created a new ticket under your account to follow up on this query. We suggest you follow up with the ticket for further updates.

Please log in using the below link:

https://support.syncfusion.com/support


Loader.
Live Chat Icon For mobile
Up arrow icon