How do I define my own code group



How do I define my own code group..

Answer / kirti

Use caspol. For example, suppose you trust code from www.mydomain.com and you want it have full access to your system, but you want to keep the default restrictions for all other internet sites. To achieve this, you would add a new code group as a sub-group of the

'Zone - Internet' group, like this:

caspol -ag 1.3 -site www.mydomain.com FullTrust

Now if you run caspol -lg you will see that the new group has been added as group 1.3.1:

1.3. Zone - Internet: Internet

1.3.1. Site - www.mydomain.com: FullTrust

Note that the numeric label (1.3.1) is just a caspol invention to make the code groups easy to manipulate from the command-line. The underlying runtime never sees it.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Dot Net Framework Interview Questions

How will you load dynamic assembly? How will create assemblies at run time?

3 Answers   Lance Soft, MGL,


What are the Main Features of .NET platform

1 Answers  


Hello guyz, I have interview scheduled next week on .Net Framework 1.1? Can any one please provide a) list of interview questions on .net frame work 1.1? b)basic differences between .net framework 1.1 and 2.0 and 3.5 c)the topics that i need to concentrate while preparing Thanks in advance

0 Answers   Logica CMG, TCS,


What is namespace used for loading assemblies at run time and name the methods?

2 Answers  


can i change web.config settings from iis?

1 Answers   HCL, ReadySoft, Wipro,






How does the .net framework 3.0 relate to windows vista?

0 Answers  


what are the different stepts to create shared assemblies?

1 Answers  


What is the significance of nonactionattribute?

0 Answers  


What is objectset? : Entity framework

0 Answers  


In which assembly is the mvc framework defined?

0 Answers  


How to use Jquery Plugins in ASP.Net MVC validation?

0 Answers  


What’s the advantage of using System.Text.StringBuilder over System.String?

4 Answers   IBM,


Categories