Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Global application object is being reseted
Message
 
To
17/05/2007 10:45:15
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
VB 8.0
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01226327
Message ID:
01226563
Views:
18
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?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform