loading assemble into AppDomain
I used to have this code which loads an assembly:
It works fine but now I need to load it into a separate AppDomain.
Assembly assembly = Assembly.LoadFrom(assemblyName);
But I cant get this to work. I've tried the assemblyResolve event, full paths to the assembly and what not. Every time an exception is thrown that the dll or one of its dependencies cant be found.
AppDomain actionsDomain = AppDomain.CreateDomain("Action");
Assembly assembly = actionsDomain.Load(assemblyName);
Anyone know what to do?