Saving ASP.NET Application State Through Reboots

Any good way to keep the state of an ASP.NET application through reboots?

I want to be able to set some values ​​by restarting the application, and they are still there. I want to do this first of all for small drop-out test web applications that don't even need a database.

Is there a way to do this with static elements and serialization? web cache?

UPDATE :
An application should be able to update these values.
Values ​​can be custom objects, such as:

public class Person { public string FirstName { get; set; } public string LastName { get; set; } } 
+4
source share
3 answers

You need some kind of persistent data store, be it a database, xml files or something else.

You might be interested in SimpleRepository with SubSonic's SqlLite , which is pretty close to what you are describing.

+1
source

Why not just use the ASP.NET public service:

http://msdn.microsoft.com/en-us/library/ms972429.aspx

Did I miss something?

+2
source

I believe that you can save an ASP.NET session in a SQL Server Server database. I would suggest that this will persist in restarting applications or even when stopping / rebooting.

0
source

All Articles