XmlSerialization of classes with declarative Security
From: Doug Holland (DougHolland_at_discussions.microsoft.com)
Date: 02/26/05
- Previous message: William Stacey [MVP]: "Re: API to access loaded assembly hash"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Sat, 26 Feb 2005 11:05:02 -0800
I'm working on a project where I have to pass a serialized object to a
ASP.NET web service and I recieve an exception because that the object cannot
be serialized due to declarative security.
The object in question is an Exception class and as such I cannot change the
declarative security to imperative security permissions or demans in property
accessors because I do not own the code to the Exception class.
The following support article details how to do this in this way.
http://support.microsoft.com/?kbid=326971
Is there a way that I can allow a WebMethod to take an Exception as a
parameter and not recieve the security exception that results from attempting
to serialize a class with declarative security?
Thanks in advance
Doug Holland
- Previous message: William Stacey [MVP]: "Re: API to access loaded assembly hash"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|