Posted 16 June 2020, 3:34 am EST
Hi,
when I’m trying to create new instances of both those classes,
var viewer = new C1DocumentViewer();
and
var printDocument = new C1PrintDocument();
my software crashes with following error:
System.TypeLoadException
HResult=0x80131522
Message=Could not load type ‘System.AppDomainManager’ from assembly ‘mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089’.
Source=C1.WPF.C1Report.4
StackTrace:
at C1.Util.Licensing.ProviderInfo.IsMsIdeDomainManager()
at C1.Util.Licensing.ProviderInfo.IsDesignTime(LicenseContext context)
System.MissingMethodException
HResult=0x80131513
Message=Method not found: ‘System.String System.AppDomainSetup.get_LicenseFile()’.
Source=C1.WPF.C1Report.4
StackTrace:
at #AT.#eU.#6T(LicenseContext #8H, Type #db, Assembly #5T)
at #AT.#eU.#4T(LicenseContext #8H, Type #db, Assembly #5T)
The error seems to be suggesting a license issue, but I can’t figure out what might be wrong with it. Here are the contents of my .licx file:
C1.WPF.FlexGrid.C1FlexGrid, C1.WPF.FlexGrid.4
C1.WPF.C1Report.C1DocumentViewer, C1.WPF.C1Report.4
C1.C1Preview.C1PrintDocument, C1.WPF.C1Report.4
Is it missing something? (It’s worth mentioning, that flex grid controls aren’t causing any problems).
Thanks,
Przemyslaw