I am attempting to connect to SAB B1 2007 company using the following code:
SAPbobsCOM.Company.Server = "SAPServerName"
SAPbobsCOM.Company.CompanyDB = "SAPCompanyDB"
SAPbobsCOM.Company.UserName = "SAPUserName"
SAPbobsCOM.Company.Password = "SAPPassword"
SAPbobsCOM.Company.language = SAPbobsCOM.BoSuppLangs.ln_English;
SAPbobsCOM.Company.DbServerType = SAPbobsCOM.BoDataServerTypes.dst_MSSQL2005;
int returnCode = sapCompany.Connect();
I am receiving the following error message:
-111 Falied to Connect to SBOCommon
Does anyone have any ideas why this is? I have ensured the License Manager is running.