loading assemblies removed appdomain, removing invalidcastexception
i'm perplexing bucket assemblies removed app domain, nonetheless am controlling unequivocally uncanny problem. here's code:
open stationary vacant loadassembly(string assemblypath)
{
twine pathtodll = assembly.getcallingassembly().codebase;
appdomainsetup domainsetup = new appdomainsetup
{
privatebinpath = pathtodll
};
appdomain newdomain = appdomain.createdomain("assemblyloader",null,domainsetup);
assemblyloader loader = (assemblyloader)newdomain.createinstancefromandunwrap(
pathtodll,
typeof(assemblyloader).fullname);
}
assemblyloader another category same public one, inherits marshalbyref, however uncanny reason, i ban difference each i try run this. i even hardcoded route dll instead controlling getcallingassembly().codebase nonetheless i keep removing exception.
i know it's tough answer doubt but indeed observant carrying some-more information, nonetheless maybe someone run identical conditions know common "gotchas" i should feeling out for.
edit: reason i don't wish bucket directly since only biased code. ultimate idea category have slight bucket assemblies, gets guid info stores database digest i'm operative on. therefore, i bucket public removed app domain, i bucket others there too following empty app domain. indicate carrying assemblies hallowed generation app, i wholly need data.
Comments
Post a Comment