‎2022 Nov 11 6:57 PM
Hello,
I am new for SAP DI API programming. right now, I installed DI API on my local machine.
I added the DI API dll into my c# project. also, I refer the information in the b1_local_machine.xml on the server to enter the SDL servername when I install the DI API.
when I run my little test program, I got -10 for the result. below is the questions I have.
1. what is mean -10, any log file I can check what the exactly error I receive.
2. do I need copy the b1_local_machine.xml from the server to my local machine.
3. also, I tested on server side, I tried telnet hostname 40000 is working on the server side. but it is not working on my local machine. is it possible fw blocked 40000 from my local machine.
if anyone can help me on this, really appreciated.
thanks,
Eddy
SAPbobsCOM.Company company = new SAPbobsCOM.Company();
company.Server = "SAPBUSINESS ONE";
company.CompanyDB = "db";
company.DbServerType = SAPbobsCOM.BoDataServerTypes.dst_MSSQL2014;
company.DbUserName = @"username";
company.DbPassword = "password";
company.UserName = "username";
company.Password = "password";
company.language = SAPbobsCOM.BoSuppLangs.ln_English_Gb;
company.UseTrusted = false;
company.LicenseServer = "LicenseServer";
int connectionResult = company.Connect();