Execute global.asax methods always

In order to execute your methods in your global.asax file you need to modify your IIS configuration.  This is because .htm files are handled by the IIS without activating the .NET framework. In order to activate the framework when requesting other file types you should Open the IIS manager Navigate to your website Rightclick and select properties Select the "Home directory" tab Click "Configuration..." Here you can see all the file extensions that are handled by something other then the IIS alone Here you should add the extension that you want to be handle by the framework by writing the executable path to the aspnet_isapi (see one of the already registered extension for the correct path) The press OK for all the windows and the next time a file with the given extension forces the .NET framework to be activated and thereby you global.asax methods are executed as if it was a regular aspx page