Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iTextSharp 5.5.13.3 GetLicenseeInfoForVersion Issue

Tags:

c#

itext

This is a very strange one, been using this Nuget package for years, never an issue. However on new PC my local project is having an issue with the following code:

MethodInfo method = licenseKeyClass.GetMethod("GetLicenseeInfoForVersion", types);

I've tried, removing and re-installing iTextSharp Nuget package, no joy, deleting my local copy, cloning the project from Git, still no joy, yet on my old PC works like a charm.

I have also cleared my Nuget Cache in Visual Studio 2022, cleared from my local windows profile .nuget\packages. Cleaned project, forced Nuget to download iTextSharp 5.5.13.3 and itextsharp.xmlworker 5.5.13.3. No matter what I do the debug process fails at line 91 in Version.cs.

Other developers can run the same project/branch codebase with no issues.

I've not modified the source code, so using in compliance with GNU Affero General Public License, therefore not requiring a Commercial License.

Any thoughts?

Please no suggestions re upgrading to itext7, employer development restrictions prevent moving to .NET Core at this moment in time.

like image 946
iggyweb Avatar asked Mar 07 '26 18:03

iggyweb


1 Answers

When the error occurs in Visual Studio 2022, in the error dialog box, just check the option stop when the error raised by itextsharp.dll. Then it will continue execution and the report is generated successfully.

like image 158
Philippe AT-SE Avatar answered Mar 09 '26 09:03

Philippe AT-SE



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!