Link to home
Start Free TrialLog in
Avatar of AstroGuy
AstroGuy

asked on

Directies for application domains security zone c#

When building the following code I fet the error
"The type or namespace name 'Zone' could not be found (are you missing a using directive or an assembly reference?)      
object[] hostEvidence = { new Zone(SecurityZone.Internet) }; 
            Evidence internetEvidence = new Evidence(hostEvidence, null); 
            AppDomain myDomain = AppDomain.CreateDomain("MyDomain"); 
            myDomain.ExecuteAssembly("SecondAssembly.exe", internetEvidence);

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Pablissimo
Pablissimo

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial