This is a discussion on Cannot load a raw assembly in a newly created AppDomain - CSharp ; Hello, I am trying to load up an Assembly in a newly created AppDomain: m_TempAppDomain = AppDomain.CreateDomain("Temporary", null, AppDomain.CurrentDomain.SetupInformation); byte[] AssemblyBytes = GetAssemblyBytes(assemblyPath); m_TempAppDomain.Load(AssemblyBytes); The code above produces a "The system cannot find the file specified." runtime error. If I ...
Hello,
I am trying to load up an Assembly in a newly created AppDomain:
m_TempAppDomain = AppDomain.CreateDomain("Temporary", null,
AppDomain.CurrentDomain.SetupInformation);
byte[] AssemblyBytes = GetAssemblyBytes(assemblyPath);
m_TempAppDomain.Load(AssemblyBytes);
The code above produces a "The system cannot find the file specified."
runtime error. If I try loading up from the main AppDomain:
Assembly CandidateAssembly = AppDomain.CurrentDomain.Load(AssemblyBytes);
everything looks fine. What am I missing?
Thanks in advance,
V.