[Mono-devel-list] Detecting ASP.NET or .EXE

Rafael Teixeira monoman at gmail.com
Tue Jul 27 09:07:03 EDT 2004

You can use Reflection: the System.Assembly.GetEntryAssembly static
method (see documentation)

On Mon, 26 Jul 2004 22:05:46 -0400, Matthew Metnetsky <met at uberstats.com> wrote:
> I realize the subject is horrible, but I'm not sure what the exact
> language is.
> Is there a way to detect if an assembly I've built is running within an
> ..EXE or within ASP.NET (mod_mono/IIS)?  How might I check this so that
> config options can be set appropriately?
> Thanks in advance,
> ~ Matthew
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list

Rafael "Monoman" Teixeira
Mais um blog: http://br.thespoke.net/MyBlog/Monoman/MyBlog.aspx

More information about the Mono-devel-list mailing list