The type initializer for 'zz93.aw' threw an exception.

The type initializer for 'zz93.aw' threw an exception.

Forum member · Feb 23, 2010
I am getting the following error when I try to call the Document.Draw function in Visual Studio 2010. The code works great in VS2008. Any thoughts? The invoked member is not supported in a dynamic assembly. [NotSupportedException: The invoked member is not supported in a dynamic assembly.] System.Reflection.Emit.InternalAssemblyBuilder.GetManifestResourceNames() +56 zz93.aw.a() +654 zz93.aw..cctor() +462 [TypeInitializationException: The type initializer for 'zz93.aw' threw an exception.] zz93.aw.c(Int32 A_0) +0 ceTe.DynamicPDF.Document.f() +34 ceTe.DynamicPDF.Page.DrawEntries(DocumentWriter writer, Int32 pageNumber, Int32 sectionPageNumber) +268 ceTe.DynamicPDF.Page.a(DocumentWriter A_0, Int32 A_1, Int32 A_2, Int32 A_3) +401 zz93.ab.d(Int32 A_0) +212 zz93.ab.v() +978 ceTe.DynamicPDF.Document.Draw(Stream stream) +68 ceTe.DynamicPDF.Document.Draw() +106 ... ...

Re: The type initializer for 'zz93.aw' threw an exception.

Support · Feb 24, 2010
Hello, What exact version and build of our product are you using? Also what type of application you have in VS2010 (Windows, Web etc)? Can you please send over the sample code you are using to our [^a|mailto:support@cete.com|Support Team^] so that they can look into it further. Thanks, ceTe Software Support Team.

Re: The type initializer for 'zz93.aw' threw an exception.

Forum member · Feb 24, 2010
We are using DynamicPDF Suite v4.0 for .NET, and I made a simple website in VS2008 and VS2010 to confirm the error was specific to VS2010 and the code is as follows: protected void Page_Load(object sender, EventArgs e) { TiffFile tiff = new TiffFile("C:\\scan.tif"); Document doc = tiff.GetDocument(); byte[] docbytes = doc.Draw(); }

Re: The type initializer for 'zz93.aw' threw an exception.

Support · Feb 24, 2010
Hello, Currently it is not possible to use our product in VS2010 web applications. We will support the VS2010 for our latest version v6 and this will be released soon. Thanks, ceTe Software Support Team.

Re: The type initializer for 'zz93.aw' threw an exception.

Support · Feb 25, 2010
Hello, We do have a BETA build that works in .NET 4.0 but it has not yet been released publically. If you'd like to test out this build, please send an e-mail to [^a|mailto:support@cete.com|Support^] and we'll get it right over to you. Thanks, ceTe Software Support Team

Re: The type initializer for 'zz93.aw' threw an exception.

Forum member · Feb 26, 2010
I've sent an email Thanks.

Re: The type initializer for 'zz93.aw' threw an exception.

Forum member · Mar 2, 2010
The beta build did fix the error. Thanks.

Re: The type initializer for 'zz93.aw' threw an exception.

Forum member · Feb 18, 2014
Dear Support, This bug also appears for me in the latest downloaded PDF merge(4.0.3.20) and VS2010/VS2012.

Re: The type initializer for 'zz93.aw' threw an exception.

Forum member · Feb 18, 2014
Dear Support, This bug also appears for me in the latest downloaded PDF merge(4.0.3.20) and VS2010/VS2012.

Re: The type initializer for 'zz93.aw' threw an exception.

Forum member · Feb 18, 2014
The exact vesion which I'm using is (Developer Edition Build 80214)

Re: The type initializer for 'zz93.aw' threw an exception.

Support · Feb 18, 2014
Hello, It looks like your application is targeting version 4.x .NET framework dynamically. Please set the target framework as .NET Framework 2 in Visual Studio 2010/2012 and reference the version 4 ceTe.DynamicPDF.20.dll in your application. This will work for you. Also please note that this is not a bug in our API as version 4 DynamicPDF for .NET product does not support version 4.x .NET framework. Support for version 4 .NET framework was added to version 6 and later DynamicPDF for .NET product. Currently version 7 DynamicPDF for .NET product is available on our website for download here . Also please refer to the documentation on referencing version 7 assembly here . Thanks, ceTe Software Support Team.