cancel
Showing results for 
Search instead for 
Did you mean: 

Trying to cconect to SAP Business one SDK Error -4008

0 Kudos

I am trying to connect to our SDK to Business one and I am receiving the error -4008

Here is the code I am writing an import routine to import invoices so please let me no if this is not the correct method of connecting.We are using SAP Business one version 9.3



        private static SAPbobsCOM.Company _company;


        private static int ConnectDI()
        {
            int returnValue = -1;
            _company = new SAPbobsCOM.Company();
            _company.Server = "192.168.10.193";
            _company.DbServerType = BoDataServerTypes.dst_MSSQL2014;
            _company.CompanyDB = "SBODemoGB";
            _company.LicenseServer = "192.168.10.193:30000";
            _company.UserName = "manager";
            _company.Password = "manager";
            try
            {
                returnValue = _company.Connect();
            }
            catch (Exception exception)
            {
                Console.WriteLine("Exception occurred: {0}", exception.Message);
            }
            return returnValue;
        }


        public B1Context(string[] args)
        {
            try
            {
                int connected = ConnectDI();


            }
            catch (Exception ex)
            {




            }
        }

Accepted Solutions (0)

Answers (0)