My web app exposes a few services (WCF) and I need to load an XML file and 'store' it a static variable visible to the entire AppDomain. That variable needs to be queried and updated from either a service or a page.
The thing is, I load that variable in the Application_Start (Global.asax.cs) but when a service request arrives the variable is empty and needs to be 'reloaded', and that happens with every service (3), so I end up with 3 instances of a static variable.
How can I ensure that all my applications are running on the same AppDomain? what am I doing wrong?
VS2008 SP1 on Win7 RTM box