I am trying to connect oCompany and I am getting the -132 error: SBO user authentication.
I can see the company list but when I try to do the oCompany.connect I get the above error. Am I missing a parameter?
oCompany = new SAPbobsCOM.Company(); // Init Connection Properties oCompany.DbServerType = SAPbobsCOM.BoDataServerTypes.dst_HANADB; oCompany.Server = "hdb@10.0.23.45:30013"; // change to your company server oCompany.language = SAPbobsCOM.BoSuppLangs.ln_English; // change to your language oCompany.UseTrusted = false; oCompany.DbUserName = _txtDBU.Text; oCompany.DbPassword = _txtdbp.Text; try { oRecordSet = oCompany.GetCompanyList(); // get the company list while (!(oRecordSet.EoF == true)) { Console.WriteLine(oRecordSet.Fields.Item(0).Value); oRecordSet.MoveNext(); } oCompany.CompanyDB = "MyCompany"; oCompany.UserName = "manager"; oCompany.Password = "MyPwd"; oCompany.LicenseServer = "10.0.23.45:40000"; int temp_int = (int)(lErrCode); string temp_string = sErrMsg; //// Connecting to a company DB lRetCode = oCompany.Connect(); if (lRetCode != 0) { temp_int = (int)(lErrCode); temp_string = sErrMsg; oCompany.GetLastError(out temp_int, out temp_string); } } catch (Exception ex) { return; }<br>