[Mono-list] Global.asax.cs problems; from Visual Studio .NET to Mono/XSP.

Gonzalo Paniagua Javier gonzalo@ximian.com
Thu, 29 Apr 2004 16:07:44 +0200

El mié, 28-04-2004 a las 19:01, Roberto Jimeno escribió:
> Hi there!
> I have some code generated using VS.NET. I tried to run that very same
> code using Mono/XSP and I got an error 500
> (System.NullReferenceException) from it. Apparenly this is due to a line
> where `Application["ContadorAccesos"].ToString()' is consulted before it
> is initialized.
> The trick here is that `Application["ContadorAccessos"]' is actually
> initialized in the Global.asax.cs file (set to zero on the method
> "Application_Start" of class "Global". Somehow VS.NET executes the
> initialization prior to the value being consulted, while Mono/XSP does
> not.

You didn't attach the global.asax file to the bug report you entered. If
this is still a bug for you, please, report it using bugzilla and attach
all the files needed to reproduce it.