SecurityAction.InheritanceDemand....

E

Earth Worm Jim

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

[StringNameIdentityPermission(SecurityAction.InheritanceDemand,
PublicKey="00024....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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top