Hi,
We have HttpHandlers that can process requests for up to 50 minutes. Those
HttpHandlers are running in an app domain inside the DefaultAppPool. We'd
like the HttpHandlers to be able to detect when its containing app pool or
app domain is requesting a shutdown (when it is recycling, for example). I
looked at the Application_End method in global.asax, as well as the System.
AppDomain.CurrentDomain.DomainUnload event. Neither get called as long as
the HttpHandlers are handling a client request. Is there a way to
programatically know when an app domain is about to shut down? We need to
know so that we can force the request to end more quickly and gracefully.
Thanks for you help.
Bubba 5 4347
Hi,
I think this can be handled inside AppDomain.UnhandledException event.
If you want complete working code for it then please let me know.
Thanks and Regards,
mansih bafna
"Bubba" wrote:
Hi,
We have HttpHandlers that can process requests for up to 50 minutes. Those
HttpHandlers are running in an app domain inside the DefaultAppPool. We'd
like the HttpHandlers to be able to detect when its containing app pool or
app domain is requesting a shutdown (when it is recycling, for example). I
looked at the Application_End method in global.asax, as well as the System.
AppDomain.CurrentDomain.DomainUnload event. Neither get called as long as
the HttpHandlers are handling a client request. Is there a way to
programatically know when an app domain is about to shut down? We need to
know so that we can force the request to end more quickly and gracefully.
Thanks for you help.
Bubba
Hi,
Have you also tried AppDomain.ProcessExit?
Thanks and Regards,
manish bafna
"Bubba" wrote:
Hi,
We have HttpHandlers that can process requests for up to 50 minutes. Those
HttpHandlers are running in an app domain inside the DefaultAppPool. We'd
like the HttpHandlers to be able to detect when its containing app pool or
app domain is requesting a shutdown (when it is recycling, for example). I
looked at the Application_End method in global.asax, as well as the System.
AppDomain.CurrentDomain.DomainUnload event. Neither get called as long as
the HttpHandlers are handling a client request. Is there a way to
programatically know when an app domain is about to shut down? We need to
know so that we can force the request to end more quickly and gracefully.
Thanks for you help.
Bubba
Hi Manish,
Thanks for your input, but AppDomain.ProcessExit is not called while there
are requests running. Also, AppDomain.UnHandledException is not appropriate
because there are no exceptions thrown in this case.
Thanks,
Bubba
Since your http handlers are still executing you AppDomain will not shut
down so could you hook into any shutdown event?
Gabriel
"Bubba" <fa**@fake.fakewrote in message
news:f9******************************@ureader.com. ..
Hi,
We have HttpHandlers that can process requests for up to 50 minutes.
Those
HttpHandlers are running in an app domain inside the DefaultAppPool. We'd
like the HttpHandlers to be able to detect when its containing app pool or
app domain is requesting a shutdown (when it is recycling, for example).
I
looked at the Application_End method in global.asax, as well as the
System.
AppDomain.CurrentDomain.DomainUnload event. Neither get called as long as
the HttpHandlers are handling a client request. Is there a way to
programatically know when an app domain is about to shut down? We need to
know so that we can force the request to end more quickly and gracefully.
Thanks for you help.
Bubba
In essence, that is what I want to do - but I don't know where to do that.
Bubba This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Claire |
last post by:
Running XP pro, SP2. Visual studio .NET 2003. App written in C#
I have written an application that hides itself when run and shows a
notification icon in the system tray.
If the main form is...
|
by: Mike Stephens |
last post by:
I have an application to minimizes when X is clicked. If the user wants to
close the application they click the Exit Application button.This works fine
and does exactly what I need. I have since...
|
by: BrianDH |
last post by:
Hi
I have a VB.Net windows application that for some reason when running will
not allow the user to shut-down/reboot the Operating System without first
closing my application. Has anyone had the...
|
by: pamelafluente |
last post by:
Hi Guys,
I have a small application which uses a NotifyIcon. The user can set a
flag (PreventClosing ) so that when he clicks on the form-cancel button
"X", the program will instead be...
|
by: Jason S |
last post by:
Hi there,
I created a simple VB app that runs in the background that I now need to
detect when Windows (XP with SP2) is just about to Shut Down OR the user is
Logging Off. Is this possible?
I...
|
by: mangesh |
last post by:
Is there any function in standard library that can forcefully release
memory associated with a process(application) ?
Regards
Mangesh .
|
by: Sidney |
last post by:
Dear,
I am writting a system which opened at the system tray. But every before
I shut down my computer,
I have to close the system first. However, it should be automatically
close when I shutting...
|
by: Austen |
last post by:
Hello
i trying to shut down window using vb. i able to restart and log off, but was unable to shut down. when excute the shut down command , nothing happend. it related to window os security issue?
|
by: shubby |
last post by:
hello,
I have a same kind of problem, when i shut-down my system, it gets restarted, plz assist me how to correct that
Thanks
|
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
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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...
|
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...
|
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...
|
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: 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: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
| |