I would like to load an assembly into ASP.NET's AppDomain from the another app domain. Microsoft's Cassini does this by calling an internal class (BuildManagerHost.RegisterAssembly). I would like to do this using just public APIs, at least on the Mono platform because this internal class does not exist there.
What I have tried:
AppDomainManager. Would work presumably, but requires either environment variables or a very new version of .NET to set the class from the config file. And it seeems it's not supported on Mono.
AppDomain.Load or AppDomain.AssemblyResolve: I would first need to get the AppDomain object for the ASP.NET domain, which does not seem possible.
Another option would be find some class in the .NET BCL that inherits MarshalByRefObject, has a constructor with no arguments, let's you give it a delegate, and then let's you invoke a method on it that invokes that delegate, but I have yet to find an object that meets this description.