Test if current running assembly will trust a Security Zone

C

Clinton Pierce

I need to be able to test at runtime whether or not a component is going to
load properly from the Intranet.

Is there a way to query, "Will the current running assembly trust a
component loaded from the Intranet?"
 
S

Sami Vaaraniemi

Clinton Pierce said:
I need to be able to test at runtime whether or not a component is going to
load properly from the Intranet.

Is there a way to query, "Will the current running assembly trust a
component loaded from the Intranet?"

I'm not sure if this is what you want, but one thing you could do is to load
the assembly, obtain its evidence and then look at the permissions that CLR
grants to the assembly based on the evidence.

This is effectively what caspol -resolveperm does. You can see how caspol
does it by looking at its source code which comes with Rotor.

Regards,
Sami
 

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

Top