Directies for application domains security zone c#

AstroGuy used Ask the Experts™
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

Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Do you have a 'using System.Security.Policy;' line at the top of the file?

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial