protected void Application_End(object sender, EventArgs e) { IServiceLocator iServiceLocator = this.Application[ContainerKeys.APPLICATION] as IServiceLocator; iServiceLocator.Dispose(); }