To handle properly application events it's good to have an idea how does application live cycle look like. During this cycle application is initialized and various events such as Application_Start or Application_Init are raised. You can handle these events in Global.asax file.