Persist information through application pool recycles RRS feed

  • Question

  • User-1186421367 posted


    I have a ASMX WebService and I want to persist state information if recycles happen or the WebService is shut down / restarted. 

    I tried to use the Global.asax events Application_End for storing information to local file system and Application_Start for loading the stored information, but it seems that there is no guarantee about the order how the events are raised. It can happen that Application_End isn't finished yet and Application_Start for the next run already gets executed. How to handle that? Is there a better way than Application_End for storing information for the next application run?

    Best Regards


    Tuesday, June 18, 2013 5:14 AM


All replies