on 10-17-2018 10:06 AM
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)
{
}
}
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.