Image and BMP

Skip Navigation LinksHome  /  Support  /  Forums  /  FireMail for .NET (v1)  /  Image and BMP

FireMail for .NET (v1) Forum

 Jul 15 2011 1:29 AM

I try to create a BMP iamge using

new Image(logo, 0, 0, 1);

But I always get an exception:
Attempt by security transparent method 'ceTe.DynamicPDF.Imaging.BitmapImageData..ctor(System.IO.Stream)' to access security critical method 'ceTe.DynamicPDF.Imaging.BitmapImageData..ctor(System.Drawing.Bitmap)' failed.

Assembly 'ceTe.DynamicPDF.40, Version=, Culture=neutral, PublicKeyToken=09b5ce0d5c0a9d8b' is marked with the AllowPartiallyTrustedCallersAttribute, and uses the level 2 security transparency model.  Level 2 transparency causes all methods in AllowPartiallyTrustedCallers assemblies to become security transparent by default, which may be the cause of this exception.

Could you please tell what is wrong?

Best regards, Yuriy
 Jul 15 2011 4:26 AM
Posted by a ceTe Software moderator
Hello Yurly,

This error is a know issue which was fixed recently. Please login to the customer area: using the product serial number and download the latest build that contains the fix for this issue and make sure to change all the references of DynamicPDF dll in your project to the latest build dll. This will work for you.

ceTe Software Support Team.
 Oct 12 2011 1:32 PM
I'm getting this same error in the CoreSuite generator.  I have gotten the latest but I am still getting it.
 Oct 12 2011 5:12 PM
Posted by a ceTe Software moderator

Please email the below information to so our support team can look into this further.

1.Version and build number of DynamicPDF dll being used.
2.Complete error message including the stack trace.
3.Sample code used to reproduce the error.

ceTe Software Support Team.

All times are US Eastern Standard time. The time now is 8:52 PM.