please remove unused methods( Application_Launching, Application_Closing,Application_Activated, Deactivated="Application_Deactivated )