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