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

App cache and ASP.NET application life

C P
I am trying to design a custom ASP.NET control. Its content will be
data-driven, and its content will be a small subset of probably 3-4MB of
data. (I'm examining options for storing this read-only content data - XML,
Access etc). It seems I should use the application cache to store this
3-4MB of data so that every page request doesn't have to re-load the whole
3-4 MB of data. This data will likely only change once every few months.
My problem is that I am unsure of how long an ASP.NET application persists.
I had thought that an ASP.NET app was only 'alive' while a user was
requesting a particular page. After the page has been delivered, then the
app stops. Now other stuff I've read implies this isn't correct, but I'm
not clear on what causes the termination of an ASP.NET app. I know the app
starts the first time a page is requested from my app, but when does it end?
Is it when no page requests have been made for X minutes, or if the server
needs to reclaim some resources, or is it something else?

Thanks,
Chris
Nov 18 '05 #1
1 1235
Hi Chris,

The ASP.Net Application will shut down after an interval of time with no
requests. However, if you put the code that loads the data into the
Application Cache into the Application_OnStart Event Handler, and make sure
that you set the cached data to have no expiration, any time the app goes
down, the next request will restart the app and the data will be there (by
virtue of the Application_OnStart.Event Handler).

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"C P" <no****@nospam.com> wrote in message
news:ex**************@TK2MSFTNGP11.phx.gbl...
I am trying to design a custom ASP.NET control. Its content will be
data-driven, and its content will be a small subset of probably 3-4MB of
data. (I'm examining options for storing this read-only content data - XML, Access etc). It seems I should use the application cache to store this
3-4MB of data so that every page request doesn't have to re-load the whole
3-4 MB of data. This data will likely only change once every few months.
My problem is that I am unsure of how long an ASP.NET application persists. I had thought that an ASP.NET app was only 'alive' while a user was
requesting a particular page. After the page has been delivered, then the
app stops. Now other stuff I've read implies this isn't correct, but I'm
not clear on what causes the termination of an ASP.NET app. I know the app starts the first time a page is requested from my app, but when does it end? Is it when no page requests have been made for X minutes, or if the server
needs to reclaim some resources, or is it something else?

Thanks,
Chris

Nov 18 '05 #2

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

Similar topics

1
by: Ryan | last post by:
The real reason for my previous post about intercepting Application_EndRequest (from outside of Global.asax) is because of a need to create a "non persistent page level cache". I can't seem to...
5
by: Daniel Walzenbach | last post by:
Hi, I need to cache infrequently changed data used by the entire application. Does anybody know whether using Application state (Application = somevalue;) or the Cache API (Cache.Insert) is...
2
by: Harry Simpson | last post by:
If anyone can chime in on these questions, I'd sure appreciate it. 1. How does the cache block fit in with the UIP Block - Is the "state" managed there handled any differently with the CAB...
1
by: Steve Franks | last post by:
I'm having a difficult time trying to do some basic caching of a string using VS.NET 2005 Beta 2. Here's the simple snippet I'm using in a method within my ASP.NET code behind page. if (Cache...
1
by: Rich | last post by:
There doesn't seem to be much doc on Items vs Cache in HttpContext. Basically I want to instantiate a class at web application level so that all web pages can have access to it. The object would...
2
by: Just D. | last post by:
All, Can we enable/disable the cache for each control separately or it's a global feature for the whole page? I'm aware of many settings and some bugs regarding cache but I've never seen...
1
by: Jose Fernandez | last post by:
Hello First of all, sorry for my bad english ;) I have a USER class that i create to every user that enters the website (not neccesarily logged in). At the same time i insert it into a the...
1
by: poppy | last post by:
I am currently caching some objects on the client in a windows application but was wondering if it was possible to extend the life of the cache so when I close my application down the contents of...
4
by: ThatsIT.net.au | last post by:
There are a few different ways to use cache in Asp.net. What I want to know is what is the scope of these cache methods. what I mean by scope is are are they cached for the one user or not. if...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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
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...

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.