internal static void AdminLogon( AdminSession cqAdminSession, string user, string pwd, string dbset) { try { cqAdminSession.Logon(user, pwd, dbset); } catch (COMException ex) { // TODO [teyang]: error handling //// for Login credentials throw the exact error as received from COM interface //string errMsg = UtilityMethods.Format(CQResource.CQ_CONNECTION_ERROR, ex.Message, configFile); //Logger.WriteException(LogSource.CQ, ex); //Logger.Write(LogSource.CQ, TraceLevel.Error, errMsg); //ConverterMain.MigrationReport.WriteIssue(String.Empty, errMsg, string.Empty /* no item */, // null, "Config", ReportIssueType.Critical); //throw new ConverterException(errMsg, ex); TraceManager.TraceException(ex); } }