In one of the apps we are using Dynamic PDF Generator for .Net (Product Version 3.0.3.0) with .Net4.0/VS2010. Application throwing following exception. Same code works fine with .Net3.5/VS2008.
Both versions of apps are running on the same box. We are in processing of upgrading apps from .Net3.5 to .Net4.0
Exception Details:
System.TypeInitializationException was unhandled by user code
Message=The type initializer for 'ceTe.DynamicPDF.Licensing.Manager' threw an exception.
Source=DynamicPDF.Generator.Developer
TypeName=ceTe.DynamicPDF.Licensing.Manager
StackTrace:
at ceTe.DynamicPDF.Licensing.Manager.IsProductLicensed(Int32 requiredLicense)
at ceTe.DynamicPDF.IO.PageWriter.e()
at ceTe.DynamicPDF.Page.b(DocumentWriter A_0, Int32 A_1, Int32 A_2, Int32 A_3)
at ceTe.DynamicPDF.Page.c(DocumentWriter A_0, Int32 A_1, Int32 A_2, Int32 A_3)
at ceTe.DynamicPDF.PageList.a(DocumentWriter A_0, Int32 A_1)
at ceTe.DynamicPDF.IO.DocumentWriter.h()
at ceTe.DynamicPDF.Document.Draw(String filePath)
at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)
at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
at System.Web.UI.Control.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
InnerException: System.NotSupportedException
Message=The invoked member is not supported in a dynamic assembly.
Source=mscorlib
StackTrace:
at System.Reflection.Emit.InternalAssemblyBuilder.GetManifestResourceNames()
at ceTe.DynamicPDF.Licensing.Manager.a()
at ceTe.DynamicPDF.Licensing.Manager..cctor()
InnerException: