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

Skip Navigation LinksHome  /  Support  /  Forums  /  DynamicPDF CoreSuite for .NET (v8)  /  Re: The type initializer for 'zz93.db' threw an exception

DynamicPDF CoreSuite for .NET (v8) Forum

I running Unit TEST, using FrameWerk 4.5.1 & ceTe.dynamicPDF.4.0 Version 8.0.4.33803

I try with other version and always is the same Error, the error happens only by executing unit test

S.O.S

Test Name:        PDF_Generico_33_Ingreso
Test FullName:        DynamicForms.Tests.PDFs.PdfGeneratorTests.PDF_Generico_33_Ingreso
Test Source:        E:\svn\IFELAll\trunk\Root\DynamicForms\Branches\20170725_AplicacionDisenioMarketing\DynamicForms.Tests\PDFs\PdfGeneratorTests.cs : line 170
Test Outcome:        Failed
Test Duration:        0:00:29.2695135

Result StackTrace:        
at System.Reflection.Emit.InternalAssemblyBuilder.GetManifestResourceNames()
   at zz93.db.a()
   at zz93.db..cctor()
 --- End of inner exception stack trace ---
    at zz93.db.c(Int32 A_0)
   at ceTe.DynamicPDF.Merger.AppendedPage.DrawEntries(DocumentWriter writer, Int32 pageNumber, Int32 sectionPageNumber)
   at ceTe.DynamicPDF.Page.a(DocumentWriter A_0, Int32 A_1, Int32 A_2, Int32 A_3)
   at zz93.dy.d(Int32 A_0)
   at zz93.dy.v()
   at ceTe.DynamicPDF.Document.Draw(Stream stream)
Result Message:        
Test method DynamicForms.Tests.PDFs.PdfGeneratorTests.PDF_Generico_33_Ingreso threw exception:
System.TypeInitializationException: The type initializer for 'zz93.db' threw an exception. ---> System.NotSupportedException: The invoked member is not supported in a dynamic assembly.

Posted by a ceTe Software moderator
Hello,

Please take a look at the following documentation link that explains what dlls to use depending on the .NET framework version of your project. Each dll supports specific .NET framework versions. If you use .NET 4.5.1, you should only be using ceTe.DynamicPDF.40.dll in your project. You may see this error if you use a DynamicPDF dll with a .Net framework version that it does not support. For example, using ceTe.DynamicPDF.35.dll with .NET Framework 4.5.1 may cause this error.

Thanks,
ceTe Software Support Team.
Thank you,

I have found the error, in some project the solution had reference dll version ceTe.DynamicPDF.11.dll and both dlls appeared in the Bin.

See u.

All times are US Eastern Standard time. The time now is 9:07 AM.