SecurityAction.InheritanceDemand....

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Earth Worm Jim

    SecurityAction.InheritanceDemand....

    I have a base class in an assembly that I want to add the following
    attribute:

    [StringNameIdent ityPermission(S ecurityAction.I nheritanceDeman d,
    PublicKey="0002 4....e45e")]

    The assembly is strong named and all the derived classes are in the same
    assembly. The problem that arises is that at runtime it fails to
    de-serialize a derived instance of the base object, it complains about a
    property of the base class cannot be serialised because it is decorated with
    declarative security permission attrbiutes.

    I have read the documentation and I cann't work how to grant serialization
    permissions to these properties....

    Am I missing something or is it as I expect I will not find an answer to
    this problem?

    The fact of the matter is I am just starting to secure my application and
    'attempting' to reduce access to my code base, but after trying for several
    hours of trying to find a solution it looks like this is another area of
    poor documentation.

    Cheers in advance

    Ollie


  • Earth Worm Jim

    #2
    Re: SecurityAction. InheritanceDema nd....

    type-oo it should have been StrongNameIdent ityPermission
    "Earth Worm Jim" <sdd> wrote in message
    news:OthMdAu#DH A.2012@TK2MSFTN GP11.phx.gbl...[color=blue]
    > I have a base class in an assembly that I want to add the following
    > attribute:
    >
    > [StringNameIdent ityPermission(S ecurityAction.I nheritanceDeman d,
    > PublicKey="0002 4....e45e")]
    >
    > The assembly is strong named and all the derived classes are in the same
    > assembly. The problem that arises is that at runtime it fails to
    > de-serialize a derived instance of the base object, it complains about a
    > property of the base class cannot be serialised because it is decorated[/color]
    with[color=blue]
    > declarative security permission attrbiutes.
    >
    > I have read the documentation and I cann't work how to grant serialization
    > permissions to these properties....
    >
    > Am I missing something or is it as I expect I will not find an answer to
    > this problem?
    >
    > The fact of the matter is I am just starting to secure my application and
    > 'attempting' to reduce access to my code base, but after trying for[/color]
    several[color=blue]
    > hours of trying to find a solution it looks like this is another area of
    > poor documentation.
    >
    > Cheers in advance
    >
    > Ollie
    >
    >[/color]


    Comment

    Working...