Questions on HttpApplication class

P

parez

Hi all!

How many instances of the class httpapplication exist for a single
webserver?

Does it depened on the on the number of processors?

I have a timer associated with the app and its declared in
global.aspx.vb as public shared.
Every two minutes it is suppose to do something.

But it acts a lil' weirdly. It does not timeout every two minutes. or
there is more than one instanec of the timer running.

Kindly help..
pa
 
B

Bruce Barker

there is a pool of HttpApplication instances. how many depends on how busy
the site is (if none a free for a request a new one is created). if your
variable is shared there is only one no matter how many instances.

but your problem is more likely a thread problem. if you do a redirect or
response.end in your code, the thread the timer is running on will be
destroyed (or its unused in the thread pool to long).

you should create a dedicated thread to run the timer on.

-- bruce (sqlwork.com)
 
P

parez

Hi Bruce,

I create the instance of a a new timer in the application_beginrequest
function in the global.aspx.vb if the value is nothing.
You think that could be a problem??


Thanks,
pa
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,780
Messages
2,569,611
Members
45,274
Latest member
JessMcMast

Latest Threads

Top