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.
 
Back
Top