473,394 Members | 1,935 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.

Persisting Application data/state

Hi all,

Recently I've learned of the ability to store Session data outside the
worker process (WP), for instance the ability to use the ASP.NET State
Service (aspnet_state.exe). This is great, because when the WP
terminates or performs scavenging etc', the Session state remains
untouched.

I have data which is at *application* level, and I wish to be able to
persist that data, just like I described regarding the Session
persistance.

I had several options in mind. The first is to use the Cache, but it is
unreliable; The second is to use the HttpApplication, which is also
unreliable. I can always persist the data to a database or the like,
but I was looking for a "built-in" ASP.NET solution, just like the
ASP.NET's State Service.

BTW: A simple webform which stores data on both the Session &
Application, using the State Service, and terminating the WP using Task
Manager, resulted in the Session state being stored (and "restored")
successfully, unlike the Application - so this solution serves only
Sessions.

Thanks.

Feb 7 '06 #1
4 1292
To answer your question, there is no built-in solution. This data msut exist
somewhere already (database, xml file), and you must already have the access
code to get it on_Start...everything else would be pretty simply to
implement..

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/
"ewolfman" <ew******@yahoo.com> wrote in message
news:11**********************@g47g2000cwa.googlegr oups.com...
Hi all,

Recently I've learned of the ability to store Session data outside the
worker process (WP), for instance the ability to use the ASP.NET State
Service (aspnet_state.exe). This is great, because when the WP
terminates or performs scavenging etc', the Session state remains
untouched.

I have data which is at *application* level, and I wish to be able to
persist that data, just like I described regarding the Session
persistance.

I had several options in mind. The first is to use the Cache, but it is
unreliable; The second is to use the HttpApplication, which is also
unreliable. I can always persist the data to a database or the like,
but I was looking for a "built-in" ASP.NET solution, just like the
ASP.NET's State Service.

BTW: A simple webform which stores data on both the Session &
Application, using the State Service, and terminating the WP using Task
Manager, resulted in the Session state being stored (and "restored")
successfully, unlike the Application - so this solution serves only
Sessions.

Thanks.

Feb 7 '06 #2
Thanks for you reply Karl.

Can someone please recommend a good product or open source code which
performs this persistence. I'd rather use an existing one then invest
time developing one.

Feb 8 '06 #3
I was thinking about NHibernate and the like, but it occured to be that
we probably have a design flaw, and that the data should be stored in
the Session and not in the Application level. The Session state is
handled easily by ASP.NET, so this will probably be our direction.

However, if anyone wishes to comment about the entire topic, I'll be
happy to read about it.

Feb 9 '06 #4
I'd like to draw your attention to the recently released beta preview of Persistore, a shared memory persistence technology designed to make it easy for apps, services and web sites to persist objects with simplicity and rapidity.

Additionally it supports persistent shared variables and arrays, so it has a great deal to offer, there is an informative PDF here:

http://www.morantex.com/Persistore.aspx

Regards
Hugh


I was thinking about NHibernate and the like, but it occured to be that
we probably have a design flaw, and that the data should be stored in
the Session and not in the Application level. The Session state is
handled easily by ASP.NET, so this will probably be our direction.

However, if anyone wishes to comment about the entire topic, I'll be
happy to read about it.
May 1 '06 #5

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

Similar topics

2
by: Citoyen du Monde | last post by:
Trying to get some ideas on a simple javascript project (to teach myself the language). I want to develop a client-side vocabulary practice application that would allow users to enter their own...
1
by: Chuck Bowling | last post by:
I read somewhere that MS is moving away from using the Registry to store application state. If that's the case, what alternative do they suggest for persisting application state between sessions?
1
by: lim | last post by:
What is the possible error that occurs when the Page_load event is not triggered during execution. In my page there's some basic server control. Is there any loops holes?
1
by: Diane Yocom | last post by:
I'm still very new to ASP.Net, so wanted to get some advice on how to solve the following design problem (sorry my explanation is so long): I'm developing an ASP.Net intranet app (using VB.Net...
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
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: 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...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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.