[Mono-aspnet-list] Global.asax isn't working
Marek Habersack
grendel at twistedcode.net
Tue Feb 9 03:44:01 EST 2010
On Mon, 8 Feb 2010 01:41:20 -0800 (PST)
eSPiYa <vdolosa at gmail.com> wrote:
Hello,
>
> I'm building a web service project with static variables but it seems
> Application_Start doesn't fire if I run my test project on XSP2 using Mono
> 2.6.1 on MS WinXP.
Please file a bug with a _full_ sample source, not just your global code-behind, thanks
(http://mono-project.com/Bugs, the System.Web component)
marek
> Here is my sample code:
>
> public class Global : System.Web.HttpApplication
> {
> public static Random rand;
> protected virtual void Application_Start (Object sender, EventArgs e)
> {
> rand = new Random();
> }
>
> protected virtual void Session_Start (Object sender, EventArgs e)
> {
> rand = null;
> }
> }
>
> This sample works fine with IIS and .NET2.0.
More information about the Mono-aspnet-list
mailing list