javascript
Brief description  about Online courses   join in Online courses
View Prakruthi  Rai 's Profile

What do I have to do to make my code work with the security system?

I am really confused!! please help me in this regard
Asked by Prakruthi Rai | Aug 30, 2010 |  Reply now
Replies (3)
View aamir siddiqui 's Profile
9827534966
Sep 9, 2010
View aamir siddiqui 's Profile
u should call me
Sep 9, 2010
View dotnet teacher 's Profile
Hi Prakruthi,

Usually, not a thing—most applications will run safely and will not be exploitable by malicious attacks. By simply using the standard class libraries to access resources (like files) or perform protected operations (such as a reflection on private members of a type), security will be enforced by these libraries. The one simple thing application developers may want to do is include a permission request (a form of declarative security) to limit the permissions their code may receive (to only those it requires). This also ensures that if the code is allowed to run, it will do so with all the permissions it needs.

Only developers writing new base class libraries that expose new kinds of resources need to work directly with the security system. Instead of all code being a potential security risk, code access security constrains this to a very small bit of code that explicitly overrides the security system.
Aug 30, 2010