Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
End-User: How to Restart Application
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
C# 1.1
OS:
Windows 2000 SP4
Database:
MS SQL Server
Divers
Thread ID:
01019132
Message ID:
01019179
Vues:
24
>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.
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform