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

Ulrich Staudinger chicago5 at gmx.de
Sat Nov 6 19:43:36 EST 2004


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.?

Is this a bug?

thanks in advance,
regards
ulrich


> On Sun, 2004-11-07 at 00:00 +0100, chicago5 at gmx.de wrote:
> > hello,
> > i can't post from my other email account. there is one email from me to
> be
> > moderated (because i sent an 81kb log file) and now i can't post any
> email
> > to the list at all through my other email account. 
> > 
> > anyway, here is what i originally wanted to say + ask (many thanks in
> > advance):
> > ---
> > hello,
> > 
> > please ignore my unknowledge in this field, but is there a way to
> initialize
> > my webservice (written in an .asmx file) upon xsp startup?
> > 
> > My books i have available don't tell me if it's possible or not and the
> web
> > is not very clean on this topic.
> > 
> > my constructor is called once, but only as soon as a client accesses the
> > service - i need to start some other stuff ...
> > 
> > am i doing things right or should i use another approach (i.e. an exe
> with
> > implements web service methods)? what do i need to add to call something
> as
> > soon as the server starts?
> > 
> > many thanks in advance!
> > Mono is an outstanding package - especially in conjunction with
> soap+java!
> > best regards,
> > ulrich
> 
> You can use the Application_Start event. See the documentation on
> Global.asax file in MSDN.
> 
> -Gonzalo
> 
> 
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
> 




More information about the Mono-devel-list mailing list