How do I define my own code group

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you handle variable number of segments in a route definition?

528


Explain Bundle.Config in ASP.Net MVC4?

560


Explain what languages does the .net framework support?

510


What is ViewData and TempData in ASP.Net MVC?

567


Explain something about model, view and controllers in asp.net mvc?

546






What does mvvm mean?

546


what is entity graph in entity framework?

614


What are advantages of Dependency Injection (DI) in ASP.Net MVC?

568


How to update one of my table in database at 4pm every day how it is possible?

541


what is split entity?

595


What is code first? : Entity framework

558


Why to use Html.Partial in ASP.Net MVC?

594


Explain the advantages of asp.net mvc over asp.net?

590


When using aspx view engine, to have a consistent look and feel, across all pages of the application, we can make use of asp.net master pages. What is asp.net master pages equivalent, when using razor views?

546


What is oauth in web api?

520