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 the difference between .net core and .net framework?

1 Answers  


Explain how you can send the result back in JSON format in MVC?

1 Answers  


How would you deploy your old applications with .net framework 4.0? Are the old applications compatible?

1 Answers  


What is entity sql? : Entity framework

1 Answers  


What is the difference between renderaction and renderpartial?

1 Answers  


How to Redirect Tracing to a File

1 Answers   HCL,


How to make sure Client Validation is enabled in ASP.Net MVC

1 Answers   B-Ways TecnoSoft,


Is .net framework going away?

1 Answers  


What is "out" parameter how it is used in methods?

6 Answers   Polaris,


Mention two instances where routing is not implemented or required?

1 Answers   Infosys,


Explain the difference between Viewbag and Viewdata in ASP.NET MVC?

1 Answers  


what is dot net? what is use dot net? what is benifit of dot net?what is vb dot net? what is ado dot net? what is c#?

1 Answers  


Categories