Hi all,
Studying for MCPD and working through samples in training kit. I'm on the application domains section. I have the following sample:
The line where it fails (filenotfound exception) the books says is where I put .exe. I'm not sure what it means since there's no prior step where I placed this .exe here. Am I doing something wrong here?Code:Imports System.Security.Policy Imports System.Security Module Module1 Sub Main() Dim hostEvidence As Object() = {New Zone(SecurityZone.Internet)} Dim internetEvidence As Evidence = New Evidence(hostEvidence, Nothing) Dim myDomain As AppDomain = AppDomain.CreateDomain("MyDomain") myDomain.ExecuteAssembly("SecondAssembly.exe", internetEvidence) 'Exception here End Sub End Module
Thanks,
Strick




Reply With Quote