global.asx

How to get which page threw an exception to Application_error in aspx

I have a general exception handler, Application_error in my global.asx what I'm trying to isolate all the uncaught exceptions on all my many pages. I don't want to use Page_error to catch exception because it's inefficient to call that on so many pages. So where in the exception can I find what page actually caused the exception. anythi...

How can I save the Application variables when IIS recycles and reload them after?

I have a variable declared called "Context" which is of type System.Web.HttpApplication On this variable I access a list called "Application" as follows. Context.Application.Add("NameOfItem", ItemToStore) What I want to do is use the Global.asx file to save the contents of the "Application" list to a file when IIS restarts/recycles a...