473,320 Members | 1,722 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

SecurityAction.InheritanceDemand....

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

[StringNameIdentityPermission(SecurityAction.Inheri tanceDemand,
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
Nov 12 '05 #1
1 1783
type-oo it should have been StrongNameIdentityPermission
"Earth Worm Jim" <sdd> wrote in message
news:Ot**************@TK2MSFTNGP11.phx.gbl...
I have a base class in an assembly that I want to add the following
attribute:

[StringNameIdentityPermission(SecurityAction.Inheri tanceDemand,
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

Nov 12 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Michael | last post by:
Hi, I have written an application in C# and when I distribute it I would like to prevent un-authorised people from using these assemblies in their own applications. Is it possible to do this?...
13
by: SailFL | last post by:
I have read threads here and there and I have looked at MS but I can not get a clear understanding of what .Net acutally is. I understand that C++ and Vb and other languages are being out a .Net. ...
1
by: Earth Worm Jim | last post by:
I have a base class in an assembly that I want to add the following attribute: The assembly is strong named and all the derived classes are in the same assembly. The problem that arises is...
2
by: | last post by:
I am having a little bit of trouble with the syntax using attributes in classes. The compiler always complaints (VC ++ 2002) on StrongNameIdentityPermission. :-( The intention is secure my...
4
by: | last post by:
I am stuck in a situation and I do believe that this should work, but it doesn't. I have a unmanaged dll, that uses MFC. This works great. Now I recompile the unmanaged dll so it contains...
0
by: Olaf Baeyens | last post by:
I am trying NDoc 1.2.1.x but when I execute it on, one of my projects then I get this error: >Exception: System.Security.SecurityException >Request for the permission of type...
0
by: Kenny | last post by:
Help...wimper.. been trying to get a virtualpathprovider to work and I have to be missing something. I want users to be able to enter something like mydomain.com/userentereddirectory/ and have...
0
by: Alvaro Pereira | last post by:
I’m using VS 2003 (Microsoft.Net Framework 1.1) and I’m trying to use PerformanceCounterPermissionAttribute with SecurityAction.RequestOption in my assembly.cs file.When I use...
0
by: Nick | last post by:
In my data access layer, I have permissions on each method similar to: <PrincipalPermission(SecurityAction.Demand, Authenticated:=True, Role:="modifyProspects")_ Public Overrides Function...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.