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

what is minimum requirement for entity framework applications to run?

0 Answers   Microsoft,


What are the levels at which filters can be applied in an asp.net mvc application?

0 Answers   NA,


What are multicast delegates ? give me an example

1 Answers  


What are the difference between asynchronous controller implementation between asp.net mvc 3 & asp.net mvc 4?

0 Answers  


What are HTML Helpers, AJAX Helpers in ASP.Net MVC?

0 Answers  


What are Resource Files ? How are they used in .NET

1 Answers  


What happens when I install the .net framework 3.0? How can I upgrade if I already have the .net framework 2.0 installed?

0 Answers  


What is the .net framework 3.0 (formerly winfx)?

0 Answers  


What is meant by tempdata in mvc?

0 Answers  


What is the difference between managed and unmanaged code?

12 Answers   IBM,


What is the difference between renderaction and renderpartial?

0 Answers  


What happens when you encounter a continue statement inside the for loop ?

1 Answers  


Categories