|
Hello. I´m trying to instantiate an Entity Manager during design-time but I get this error: Attempt by security transparent method 'DynamicClass.ReadImaginePulseTaskFromXml(System.Runtime.Serialization.XmlReaderDelegator, System.Runtime.Serialization.XmlObjectSerializerReadContext, System.Xml.XmlDictionaryString[], System.Xml.XmlDictionaryString[])' to access security critical type 'ImaginePulse.Models.ImaginePulseTask' failed. Assembly 'System.Runtime.Serialization, Version=5.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' 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. Do you have any idea how can I solve this error? Thanks, Samir
|