473,802 Members | 1,937 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.e xe). 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 1313
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...ever ything 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.goo glegroups.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.e xe). 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
Morantex
9 New Member
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
3091
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 words, their own definitions plus an example of how the word is used in practice. It'll be all client side with - cookies? to get persistence so that the words won't disappear on me each time the page is closed (which is what happened when I
1
1337
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
1670
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
2151
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 for my business objects) that will allow my users (max of about 25) to enter information about families and their children. On one page, I need to collect general information about the family (such as address and phone number) and specific...
0
9562
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10063
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9115
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6838
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5494
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5622
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4270
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3792
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2966
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.