473,407 Members | 2,598 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

Init method?

Hi,

I was wondering if there is any "Init method" that is called when the web
service is first deployed. I would like to initialize certain objects when
the web service is first deployed.

Any help/suggestions will be highly appreciated.
Thanks !
Feb 23 '08 #1
3 1151
"sameertanna" <sa*********@discussions.microsoft.comwrote in message
news:7F**********************************@microsof t.com...
Hi,

I was wondering if there is any "Init method" that is called when the web
service is first deployed. I would like to initialize certain objects when
the web service is first deployed.
What do you mean, "first deployed"? How would you access these objects after
they were initialized?
--
--------------------------------------------------------------------------------
John Saunders | MVP - Windows Server System - Connected System Developer
Feb 23 '08 #2
=?Utf-8?B?c2FtZWVydGFubmE=?= <sa*********@discussions.microsoft.com>
wrote in news:7F**********************************@microsof t.com:
I was wondering if there is any "Init method" that is called when the
web service is first deployed. I would like to initialize certain
objects when the web service is first deployed.
I think you can use the Global.asax.

But one thing to keep aware of, Web Services like ASP.NET is generally
stateless. So take care when creating initialization logic, it can be
called anytime whenever IIS/ASP.NET feels like recycling the process.

--
sp**********@rogers.com (Do not e-mail)
Feb 24 '08 #3
Hi,

It will be great if you could throw some light on what you mean by
"recycling", or point me to some resource which would have the information
about it.
I would like to initialize certain static objects. Would that be advisable
using Global.asax?

Thanks,
Sameer
"Spam Catcher" wrote:
=?Utf-8?B?c2FtZWVydGFubmE=?= <sa*********@discussions.microsoft.com>
wrote in news:7F**********************************@microsof t.com:
I was wondering if there is any "Init method" that is called when the
web service is first deployed. I would like to initialize certain
objects when the web service is first deployed.

I think you can use the Global.asax.

But one thing to keep aware of, Web Services like ASP.NET is generally
stateless. So take care when creating initialization logic, it can be
called anytime whenever IIS/ASP.NET feels like recycling the process.

--
sp**********@rogers.com (Do not e-mail)
Feb 28 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Bill Davy | last post by:
I am working with MSVC6 on Windows XP. I have created an MSVC project called SHIP I have a file SHIP.i with "%module SHIP" as the first line (file is below). I run SHIP.i through SWIG 1.3.24...
4
by: Halcyon Woodward | last post by:
I have an odd problem... We have a small development team (three coders) working on the same project (a C# web application). Each coder has a unique 'sandbox' site on a shared Windows 2003...
9
by: J.Marsch | last post by:
I must be missing something here: The Init event for controls does not seem to fire. What I did: Drop a textbox on a blank webform, hook the textbox's Init event. Code: this.Textbox1.Value =...
0
by: Matt Howeson | last post by:
I have a problem with a usercontrol that is dynamically loaded, from a web control and is not restoring it's viewstate properly. Here's the scenario. Within our content management system, I have...
10
by: Wylbur via DotNetMonster.com | last post by:
Hello to all of you geniuses, I'm having a problem trying to get an Init handler to fire for a Placeholder control at the initialization phase. I’ve posted this problem to 3 other ASP.NET...
6
by: Shimon Sim | last post by:
I have Panel control on the page. I am handling Init event for it. It doesn't seem to fire at all. Why? Thank you Shimon.
2
by: Urs Eichmann | last post by:
Upon startup of my ASP.NET 2.0 application, I check if the application configuration is in an acceptable state inside an override of HttpApplication.Init(). If not, I raise an exception from this...
9
by: sashang | last post by:
Hi I'd like to use metaclasses to dynamically generate a class based on a parameter to the objects init function. For example: class MetaThing(type): def __init__(cls, name, bases, dict,...
4
by: SandyIsCool | last post by:
Hi, I am newbie to asp.net. I have small doubt regarding page life cycle. MSDN documentaion says that init event does blhah, blah load event does blah blah etc. But Id ont see any init or load...
4
by: Jess | last post by:
Hello, I tried several books to find out the details of object initialization. Unfortunately, I'm still confused by two specific concepts, namely default-initialization and...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.