Skip to Content
0
Former Member
May 30, 2016 at 07:15 AM

B1 SDK DI connect retrun -10

382 Views

Could some one tell me fix this problem?

or tell me how to investigate the cause of this problem.

environment

Client Windows7/ Serer Windows 2008/SQL2008R2

SDK for B1 9.0 run on visual studio 2015.

I just try to connect to server with DI VB sample.

Dim oCompany As SAPbobsCOM.Company Dim retval As Integer Dim retstr As String Dim ConnectToCompany As Boolean

set oCompany = New SAPbobsCOM.Company

oCompany.Server = "192.168.1.44" oCompany.CompanyDB = "confirmation" oCompany.UserName = "A002" oCompany.Password = "xxxx"

oCompany.DbServerType = SAPbobsCOM.BoDataServerTypes.dst_MSSQL2008

oCompany.LicenseServer = "192.168.1.44:30000" 'oCompany.language = 30 ' Japanese

retval = oCompany.Connect

I home retval =0 but it returns -10

Please tell me to how to fix this problem or give me a hint.

-10: something like "specified resource not find in image file" message in Japanese.

UI sample connect without any problem.

Thanks in advance and best regards.

Attachments

pic000343.JPG (6.5 kB)
pic000344.JPG (12.6 kB)