private static void FireWmiEventCore(BaseEvent baseEvent) { try { baseEvent.Fire(); } catch (Exception exp) { string msg = SR.WmiEventFailure(baseEvent.GetType().Name, GetErrorMessage(exp)); COMException comException = exp as COMException; if (null != comException) { if ((uint)comException.ErrorCode == WbemAccessDenied) { msg = string.Concat(SR.ExceptionAccessDeniedFailure, msg); } } ReportWmiFailure(msg); } }