Security permissions...

Discussion in 'ASP .Net Security' started by Guest, Aug 25, 2003.

  1. Guest

    Guest Guest

    I an attempting to serialize a custom exception class that is derived from
    System.Exception during runtime.
    I am getting a the following security permission exception when the
    XmlSerializer is attempting to serilaize the 'TargetSite' property....

    "The property 'TargetSite' on type 'System.Exception' cannot be serialized
    because it is decorated with declarative security permission attributes.
    Consider using imperative asserts or demands in the property accessors."

    Can anyone show me an example of how to get round this?

    This is an ASP.Net application....

    Cheers


    Ollie
     
    Guest, Aug 25, 2003
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Usman Shami
    Replies:
    0
    Views:
    531
    Usman Shami
    Jul 14, 2003
  2. Guest

    Security permissions...

    Guest, Aug 25, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    547
    Guest
    Aug 25, 2003
  3. John Livermore

    CodeDom Security / Permissions issues

    John Livermore, Sep 7, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    687
    Duedel
    Feb 1, 2006
  4. =?Utf-8?B?cGF1bA==?=

    System.Security.Permissions.FileIOPermission

    =?Utf-8?B?cGF1bA==?=, Oct 1, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    1,127
    =?Utf-8?B?cGF1bA==?=
    Oct 1, 2004
  5. =?Utf-8?B?RXRpZW5uZQ==?=

    Error System.Security.Permissions.ReflectionPermission

    =?Utf-8?B?RXRpZW5uZQ==?=, Aug 17, 2005, in forum: ASP .Net
    Replies:
    0
    Views:
    2,508
    =?Utf-8?B?RXRpZW5uZQ==?=
    Aug 17, 2005
  6. Roger
    Replies:
    0
    Views:
    382
    Roger
    Oct 12, 2005
  7. Curt K
    Replies:
    0
    Views:
    701
    Curt K
    Nov 3, 2006
  8. Leyla
    Replies:
    2
    Views:
    1,059
    Leyla
    Aug 17, 2006
Loading...