[Mono-devel-list] xsp webservice initialization on startup
chicago5 at gmx.de
Sun Nov 7 04:33:18 EST 2004
Hmm.... i experimented a bit and found out that the global.asax is called
after the first call to the server on any url. And iiuyc the global.asax is
in fact global and i can't work on my webservice applications in the
global.asax. Or do all applications inside the xsp container share the same
memory, thus a static object initialized in global.asax can be accessed +
used in a webservice, i.e. service.asmx?
Well, that's not what i was looking for - i was looking for a way to
initialize my WebService on server startup.
Can you help a little more?
> > > so i guess the Application_Start is never called.?
> > Try using the global.asax attached.
> > -Gonzalo
> Not working. I am using the debian release since the CVS version seriously
> made too much trouble and didn't compile once fully in at least a dozen
> trys. (I had that mscorlib problem, too).
> root at usdev:/home/us/.NET/Server3# ls
> root at usdev:/home/us/.NET/Server3# xsp --version
> xsp.exe 22.214.171.124
> (c) 2002,2003 Ximian, Inc.
> (c) 2003,2004 Novell, Inc.
> Minimalistic web server for testing System.Web
> root at usdev:/home/us/.NET/Server3# cat global.asax
> <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");
> root at usdev:/home/us/.NET/Server3# xsp
> Adding applications '/:.'...
> Registering application:
> Host: any
> Port: any
> Virtual path: /
> Physical path: /home/us/.NET/Server3
> Listening on port: 8080
> Listening on address: 0.0.0.0
> Root directory: /home/us/.NET/Server3
> Hit Return to stop the server.
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
More information about the Mono-devel-list