473,385 Members | 1,843 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,385 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 15 '05 #1
1 1971
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 15 '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...
5
by: z f | last post by:
the HTML designer for aspx pages don't work is the page inherits from a custom pageBase. any solution? TIA.
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: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

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.