Gonzalo Paniagua Javier
gonzalo at ximian.com
Mon Nov 7 13:03:57 EST 2005
On Mon, 2005-11-07 at 10:37 -0600, Jerry Haltom wrote:
> A project of mine has required the use of the Mono embedded web server.
> Kudos to those who made this, it rocks.
> However, from within the ASP.Net code running in the embedded web
> server, I need to be able to call a number of methods located in the
> code that spawned the web server. This is presenting a problem because
> Mono.WebServer seems to create a separate AppDomain for the hosted
> application (expected).
> To compound it, I can't figure out how to get a reference to this
> However, for my particular use case, I don't actually need a separate
> So I have two questions. 1) Is it possible for Mono.WebServer to NOT
> create a separate AppDomain for the hosted application and 2) if not,
> how can I get a reference to this second AppDomain from the first.
Each ASP.NET application "lives" in a separate AppDomain.
There's a field named AppHost in the class VPathToHost and you can get
the domain using the Domain property on that field.
More information about the Mono-devel-list