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
Iamge and BMP
Re: Iamge and BMP
Support · Jul 15, 2011Hello 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: Iamge and BMP
Forum member · Jul 18, 2011Thank you very much