[Mono-devel-list] xsp webservice initialization on startup

Gonzalo Paniagua Javier gonzalo at ximian.com
Sat Nov 6 22:31:00 EST 2004


On Sun, 2004-11-07 at 01:43 +0100, Ulrich Staudinger wrote:
> Hi Gonzalo,
> thanks for replying so fast. That Application_Start pointed me into the
> right direction.
> 
> It doesn't work. I am using
> http://bdn.borland.com/article/0,1410,32057,00.html#ListingFour to test this
> Application_Start by adding some Console.WriteLine()s into the function. i
> am doing exactly the same as on the tutorial page - but there is no output
> in the xsp console.
> 
> when adding WriteLines to the other cs file, the WriteLines are printed ...
> so i guess the Application_Start is never called.?

Try using the global.asax attached.

-Gonzalo

-------------- next part --------------
<script runat="server" language="c#">
	void Application_Start (object o, EventArgs args)
	{
		Console.WriteLine ("Application_Start");
	}

	void Application_End (object o, EventArgs args)
	{
		Console.WriteLine ("Application_End");
	}
</script>


More information about the Mono-devel-list mailing list