I have a web project (asp.net mvc) deployed as a web role in windows azure. For the web role i have a WebRole class inheriting from RoleEntryPoint. I have overridden the OnStart() Method to initialize some static classes.
In a RequestHandler (IHttpHandler) of the same project I use these static classes, but they are not initialized - i have to initialize them in the Global.asax again. I think they are in different application domains.
I have not tested this behavior in the real azure environment, only in the emulator.
Is there a way to fix this? I need the static class to share data between the WebRole class and the request handlers.
Thanks