Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Global application object is being reseted
Message
 
À
17/05/2007 10:45:15
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
VB 8.0
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01226327
Message ID:
01226563
Vues:
15
You should never rely on an object to be there because the AppDomain maybe killed for any number of reasons. Most common is code updates on the server, changes to web.config, IIS idle timeouts of Application Pools.

Your global objects should always be static and run with a static constructor so they can reactivate on the first hit that occurs against them.

+++ Rick ---

>I am trying to resolve this one since a while. On a specific server, my global application object, which is initialized on the first hit to the Web site, is being reseted after one or several days. Basically, oApp still exists. However, all of its properties are back to their default settings. This doesn't make any sense. So, when this happens, it crashes the Web site as important settings are completely lost. What is causing that on the Web site?
+++ 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?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform