What can I do to being able to run from the code Group Internet zone

  • Thread starter Thread starter Tony Johansson
  • Start date Start date
T

Tony Johansson

Hi!

Is it possible to make some modification so the runtime interpret the
assembly to being run in code group Internet_zone ?

//Tony
 
Tony Johansson said:
Is it possible to make some modification so the runtime interpret the
assembly to being run in code group Internet_zone ?

You can create a folder and use CASPOL to modify its policy. Then copy
your assembly to that folder and run it from there. If I recall correctly,
the syntax is something like the following:

md C:\test
caspol -ag 1 -url file:///C:/test/* Internet -n InternetTest -exclusive on

Note the "-exclusive on" flag. If you don't specify this, the assembly
receives the UNION of all the permissions from all the code groups to which
it belongs, and therefore it receives not only the "Internet" group but also
the "local machine", resulting in Full Trust.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top