Loading Master pages using VirtualPathProvider causes Application_End RRS feed

  • Question

  • User-1913890864 posted



    Recently we have added VirtualPathProvider to our application so that we can load Master Pages from database (different versions for different users). We have a layout editor to change layout of the master pages. GetCacheDependency() and GetFileHash() methods of the VirtualPathProvider class are overriden to return null in case virtual path points to a master page - that is to upload the new Master Page layout from db in case it has changed. Everything works fine except one thing - application_end event fires after a minute of using the application...and we can't catch any exception at all. It looks like after a period of time application just restarts and thats it!

    Had anyone experienced the same problem when using VPP? Or maybe any suggestions on how to solve it?

    Thanks anyway.
    Friday, November 28, 2008 11:25 AM


All replies