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 to Insert a TextBox value in to Sql database using C#.Net coding

2 Answers  


what is difference b/w .net 1.1 and .net 2.0. I need Answer in c# , asp.net and ado.net Level.Like c#1.1 and c#.1.1 , ado.net1.1 and ado.net2.0 and asp.net1.1 and asp.net2.0

4 Answers  


What is the meaning of unobtrusive javascript? Explain us by any practical example.

0 Answers  


Can we access the web controls in a page pre initialising event?

2 Answers  


Can we add constraints to the route? If yes, explain how we can do it?

0 Answers  






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

0 Answers  


What is page life cycle?

0 Answers  


Are there any parts of the .net framework 3.0 that only work on windows vista?

0 Answers  


What you mean by routing in mvc?

0 Answers  


What is ASP.NET MVC?

1 Answers  


Is CLR is compiler or Interpreter

3 Answers   L&T,


What is entity graph? : Entity framework

0 Answers  


Categories