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

aspnet worker recycle question.

I was wondering that when the aspnet worker process gets recycled, would
it call Application_end of all the appdomains loaded.

I have a problem where i have a state between commiting some value to
the database, and i want to make sure that the state gets completed or
rolled back, so i was thinking about storing values in the application's
cache with dependencies.

I cannot use session because it is out of process.

Any help/pointers on this would be greatly appreciated.

regards
-ashish
Nov 19 '05 #1
1 1017
Yes, the application does call Application_End before the appdomain
unloads, but I wouldn't say it happens 100% of the time. Certain error
conditions can force the process to terminate with no warning - so I
wouldn't want to rely on Applicaiton_End to rollback a piece of state.

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Thu, 17 Feb 2005 13:45:52 -0600, ashish <as****@mailmenot.com>
wrote:
I was wondering that when the aspnet worker process gets recycled, would
it call Application_end of all the appdomains loaded.

I have a problem where i have a state between commiting some value to
the database, and i want to make sure that the state gets completed or
rolled back, so i was thinking about storing values in the application's
cache with dependencies.

I cannot use session because it is out of process.

Any help/pointers on this would be greatly appreciated.

regards
-ashish


Nov 19 '05 #2

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

Similar topics

0
by: beachnut | last post by:
Hi, all. I am getting the following entry in the Event Log once or twice a day: "A worker process with process id of '2496' serving application pool 'DefaultAppPool' has requested a recycle...
12
by: adam | last post by:
Hi I Have a problem with and asp.net application recycling. ON the development machines it works fine, but on the clients machine it keeps recycling. When some users access the app, the...
6
by: mark | last post by:
Just wondering if anyone has aspnet process recycling set up in any production environments. Our worker process memory gets out of control after being up for about a day or so and we were thinking...
2
by: John | last post by:
Is the only criteria for worker process recycle 60% physical memory usage?? (I'm on W2K, default setup - I know you can change it in machine.config). Because if so, when using SQL Server on the...
3
by: Nikhil Patel | last post by:
Hi all, I have written a web application that connects to Sql Server. I am using Windows Authentication with ASPNET local account. Do you think I should explicitly set the password for ASPNET or...
5
by: cmay | last post by:
There are lots of reasons that the WPs can be recycled or killed. When a WP is recycled, all the InProc sesssion data is lost correct? Is there any way to a) find out WHY the recycle happened...
16
by: JCauble | last post by:
We have a large Asp.net application that is currently crashing our production servers. What we are seeing is the aspnet_wp eat up a bunch of memory and then stop unexpectedly. Does not recycle. ...
2
by: Jeremy S. | last post by:
Just wondering if/how a sliding Cache expiration interacts with Application Pool Worker Process Recycling. Specifically, if I were to place some value into the Cache object with a sliding window...
0
by: aindrei | last post by:
I have a Web Service application using ASP.NET. If I set the application pool threads to recycle the worker processes after a small number of requests. I then use the Web Stress tool to send...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
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
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...

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.