The invoked member is not supported in a dynamic assembly.

The invoked member is not supported in a dynamic assembly.

Forum member · Jul 23, 2013
Hi, We have been using (PDF Merger ) for some time now. Our customer reported recently for the following error: 'The invoked member is not supported in a dynamic assembly.' Apperantly, it happens when this line is called: ceTe.DynamicPDF.Document.AddLicense(....) The full error descripton is: -------------------------------------------------- System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.TypeInitializationException: The type initializer for 'zz93ee' threw an exception. ---> System.NotSupportedException: The invoked member is not supported in a dynamic assembly. at System.Reflection.Emit.InternalAssemblyBuilder.GetManifestResourceNames() at zz93ee.a() at zz93ee..cctor() --- End of inner exception stack trace --- at zz93ee.b(String A_0) at ceTe.DynamicPDF.Document.AddLicense(String licenseKey) at Debis.CMX.Win.Framework.Reports.frmPDFMergeReportBase..ctor() at Debis.CMX.Win.WatchList.frmWatchlistReportPackage..ctor() --- End of inner exception stack trace --- at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck) at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache) at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean skipCheckThis, Boolean fillCache) at System.Activator.CreateInstance(Type type, Boolean nonPublic) -------------------------------------------------------------------- Any ideas? Thanks, Kiril

Re: The invoked member is not supported in a dynamic assembly.

Support · Jul 23, 2013
Hello Kiril, This error is caused due to using wrong DynamicPDF dll file against version 4.x .NET framework. The version 4.x DynamicPDF for .NET product does not support version 4.x .NET framework. You will need to make sure that you are targeting version 2.0 .NET framework in your application and referencing the version 4.x ceTe.DynamicPDF.20.dll file in your application and this will work for you. If you want to target version 4.0 .NET framework then you can use our latest version 7 DynamicPDF Generator for .NET and reference ceTe.DynamicPDF.40.dll in your application and this will work for you. You can download the latest evaluation edition of version 7 DynamicPDF Generator for .NET product from our website here . You can also find the discussion on similar topic on our forum here . Thanks, ceTe Software Support Team.

Re: The invoked member is not supported in a dynamic assembly.

Forum member · Jul 26, 2013
Thank you for your ansewer. We're considering byiung the latest version as the most sutable solution for us. Kiril