public override void ItemUpdated(SPItemEventProperties properties) { try { SocialEngineEvents.ItemUpdated(properties); } catch { } try { //Initialize global variables if (Initialize(true, properties)) { //UpdateItem UpdateItem(properties); } //Dispose of DAO _DAO.Dispose(); } catch (Exception ex) { SPSecurity.RunWithElevatedPrivileges(delegate { if (!EventLog.SourceExists("EPMLive Reporting Item Updated")) { EventLog.CreateEventSource("EPMLive Reporting Item Updated", "EPM Live"); } using (var myLog = new EventLog("EPM Live", ".", "EPMLive Reporting Item Updated")) { myLog.MaximumKilobytes = 32768; myLog.WriteEntry( string.Format( "Name: {0} Url: {1} ID: {2} : {3}{4}", _SiteName, _SiteUrl, _SiteID, ex.Message, ex.StackTrace), EventLogEntryType.Error, 2002); } }); } finally { ClearResourceGridCache(properties); } }