I've a trial license for iText7 and need to load the license file using this code:
string path = @"<path to JSON file>";
System.IO.FileInfo file = new System.IO.FileInfo(path);
LicenseKey.LoadLicenseFile(file);
I can successfully do this in Visual Studio but when I try to run it in Blue Prism, I get the following error:
Internal : Could not execute code stage because exception thrown by code stage: The type initializer for 'iText.Licensing.Base.LicenseKey' threw an exception.
I'm using the correct licensing base DLL (I've confirmed this as I'm using the same one within Visual Studio) and in the XML, LoadLicenseFile can take either type - System.IO.FileInfo or System.IO.Stream.
Has anyone ever come across this before and if so, what was their workaround?