While trying to connect to a 2004A database using DI API 6.7 and a VB.NET web page, I get the error listed in the title of this post. I was wondering if someone could give me a hint as to what this error message refers to and how I might be able to resolve it. Thanks in advance for your input.
Public Function Connect() As String Dim s_Error As String Dim i_Error As Integer Try oCompany = New SAPbobsCOM.Company With oCompany .Server = "(local)" .CompanyDB = "SBODemo_US" .UserName = "manager" .Password = "manager" .language = SAPbobsCOM.BoSuppLangs.ln_English End With oCompany.Connect() If oCompany.Connected = False Then oCompany.GetLastError(i_Error, s_Error) Return s_Error Else oCompany.Disconnect() Return 0 End If Catch ex As Exception Finally oCompany = Nothing End Try End Function