Hi All,
I'm currently using Beta 1b.
I created a simple form with one button. When I run it, IT works fine.
HOWEVER, If I add a button image or if I try to add a background image to a panel, I get the following security error.
I'm running in full trust.
Any ideas anyone?
Server Error in '/' Application.
Security Exception
Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.
Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. |
Stack Trace:
[SecurityException: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.]
System.Runtime.Serialization.Formatters.Binary.ObjectReader.CheckSecurity(ParseRecord pr) +7545043
System.Runtime.Serialization.Formatters.Binary.ObjectReader.ParseObject(ParseRecord pr) +223
System.Runtime.Serialization.Formatters.Binary.ObjectReader.Parse(ParseRecord pr) +34
System.Runtime.Serialization.Formatters.Binary.__BinaryParser.ReadObjectWithMapTyped(BinaryObjectWithMapTyped record) +519
System.Runtime.Serialization.Formatters.Binary.__BinaryParser.ReadObjectWithMapTyped(BinaryHeaderEnum binaryHeaderEnum) +61
System.Runtime.Serialization.Formatters.Binary.__BinaryParser.Run() +253
System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(HeaderHandler handler, __BinaryParser serParser, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage) +168
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream, HeaderHandler handler, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage) +203
System.Resources.ResourceReader.DeserializeObject(Int32 typeIndex) +7549029
System.Resources.ResourceReader.LoadObjectV2(Int32 pos, ResourceTypeCode& typeCode) +246
System.Resources.ResourceReader.LoadObject(Int32 pos, ResourceTypeCode& typeCode) +23
System.Resources.RuntimeResourceSet.GetObject(String key, Boolean ignoreCase, Boolean isString) +438
System.Resources.RuntimeResourceSet.GetObject(String key, Boolean ignoreCase) +16
System.Resources.ResourceManager.GetObject(String name, CultureInfo culture, Boolean wrapUnmanagedMemStream) +68
System.Resources.ResourceManager.GetObject(String name) +8
vwg3.Form1.InitializeComponent() +459
vwg3.Form1..ctor() +212
|