code access security

C

Chris

Hi,

when an assembly is loaded by the runtime does the runtime check the
evidence of the assembly. Then depending on the evidence does it assign the
assembly to a codeGroup. And finally, depending on the permission sets
assigned to the Codegroup (the assembl belongs to) is it allowed (or not) to
execute specific tasks.

My question is ? how can I make my assembly belong to a specific code group
?

Here's what I did :

Using the tool mscorcfg.msc did I :
1) create a MyPermissionSet
2) assign a few permissions to the set such as FileIO and FileDialog

3) create a My_CodeGroup
4) assigned the MyPermissionSet to My_CodeGroup

Now, how can I have a MyApplication (assembly) belong to My_CodeGroup ?

Thnx

Christian
 

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