views:

23

answers:

0

I'm running a site in medium trust, one class implements ISerializable. Eberything works fine locally, but on the server, I get the error:

Inheritance security rules violated while overriding member: 'User.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)'. Security accessibility of the overriding method must match the security accessibility of the method being overriden.

It sounds like a security issue but there don't seem to be any solutions available. Is this a medium trust issue, or is there any way to request the required permissions (short of contacting my host)?