BoldDeskWe are launching BoldDesk on Product Hunt soon. Learn more & follow us.
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
We have attached a video and sample for your reference:
sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/WinformSample-662904969
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.
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
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,
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.
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
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
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: