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
Image and BMP
Re: Image 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: Image and BMP
Forum member · Oct 12, 2011I'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, 2011Hello,
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.