Image and BMP

Image and BMP

Forum member · Jul 15, 2011
Hello, 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=6.0.2.40, 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

Re: Image and BMP

Support · Jul 15, 2011
Hello Yurly, This error is a know issue which was fixed recently. Please login to the customer area: http://www.DynamicPDF.com/CustomerArea/ 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. Thanks, ceTe Software Support Team.

Re: Image and BMP

Forum member · Oct 12, 2011
I'm getting this same error in the CoreSuite generator. I have gotten the latest but I am still getting it.

Re: Image and BMP

Support · Oct 12, 2011
Hello, Please email the below information to [^a|mailto:support@cete.com|opennewiwndow|support@cete.com^] 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. Thanks, ceTe Software Support Team.