473,395 Members | 1,975 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,395 software developers and data experts.

Questions on HttpApplication class

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

Nov 19 '05 #1
2 1544
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)
"parez" <ps*****@gmail.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
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

Nov 19 '05 #2
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

Nov 19 '05 #3

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

Similar topics

3
by: AinO | last post by:
Hi, - I've created a webservice in VS2003/c# wich relies heavily on cache. It has a cache manager wich loads resources (triggered by requests) and wich has also a built in timer wich triggers...
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...
4
by: sikander khan via .NET 247 | last post by:
hello all ! i know that there exists one to one relationship between HttpApplication instance and a request. My doubt is that instance associated with that request until session times out. i mean...
2
by: Breeto | last post by:
Can anyone please tell me why the following doesn't work... using System; using System.Web; namespace AspTests {
1
by: Fernando Arámburu | last post by:
Hy everybody, I´m working on an ASP.NET framework and and I need to extend System.Web.HttpApplication. I mean, I need to put some intermediate class between System.Web.HttpApplication and Global...
1
by: phil2phil | last post by:
can someone tell me the difference between the httpcontext and httpapplication object, they seems to have similar methods, such as getting the Response, REquest, Server variables, are there times...
5
by: miha.valencic | last post by:
Hi! A while ago, I noticed that there are usually two instances of HttpApplication created within IIS (observed on WinXPPro). Why is that? Especially, since Application_Start handler is called...
8
by: Navin Mishra | last post by:
Hi, Can an ASP.NET web service project expose two different web services perhaps by having two .ASMX files ? Is it possible to have a web emethod that does not appear in auto-generated WSDL and...
4
by: Zhangming Su | last post by:
Hi, Any one know "How to get HttpApplication from Windows Form" by using C# on Windows 2003 server? Thank for the help!
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.