Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
End-User: How to Restart Application
Message
 
To
01/06/2005 19:15:08
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
C# 1.1
OS:
Windows 2000 SP4
Database:
MS SQL Server
Miscellaneous
Thread ID:
01019132
Message ID:
01019574
Views:
30
This message has been marked as a message which has helped to the initial question of the thread.
Hi Al,

Ugh, this sounds real ugly. Are you saying your caching data in statics somewhere (Application.Items, statics or Cache) and also duplicating some of that cached data in sessions? Be very, very careful with this sort of thing. It's not usually wise to store data in Session variables for a variety of reasons not the least of which is that Session state can easily fail or restart.

There's no way to programmatically trigger an application restart in ASP.NET, but you can modify the web.config file programmatically - or just change hte date of the file to force ASP.NET to restart the app for you.

+++ Rick ---

>>Al,
>>
>>>My ASP.NET app draws information from SQL Server to populate dropdown lists etc. This information changes very seldom and is common to all sessions so I'm storing it in datatables in Application state, which are loaded at application start.
>>
>>Keeping this goal in mind. I don't think you need to restart the application. If you are to give the user an admin page (web form) which can be coded to retrieve the data from your SQL Server and repopulate the DataTables in your Application state so long as you can obtain a reference to the application state variable.
>
>That's an excellent idea which may work very well for this particular application. The only concern I have is that a session already in progress could potentially end up with 2 different versions of the information between different pages, or maybe even in the same page (unlikely but possible)? My (limited) understanding is that an ASP.NET app restart automagically takes care of these kinds of issues.
>
>The site I'm working on will likely be very low transaction volume so I don't think concurrency during a data refresh will be a problem. So, as I said, I think your idea will probably work fine. However, I think there may be (other) circumstances where I might like to force an app restart, so it'd be nice to know if it could be done programmatically.
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform