cancel
Showing results for 
Search instead for 
Did you mean: 

Connection Error

ramco1917
Participant
0 Kudos
Hi
 
I am getting below error . System is 64bit.
 
Sap Error.png
Company oCompany = new Company();
oCompany.Server = "SapServer";
oCompany.CompanyDB = "Sap_Test";
oCompany.UserName = "manager";
oCompany.Password = "man@234";
oCompany.DbServerType = BoDataServerTypes.dst_MSSQL2014;
if (oCompany.Connect() == 0)
{
MessageBox.Show("Conneccted to SAP B1 successfully");
}
View Entire Topic
ANKIT_CHAUHAN
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi ramco1917,

This error means that your program is unable to reference to the 64-Bit DI API correctly.

Can you set the Target Platform as x64 in Visual Studio and check the issue again?

We are assuming that you are using SAP Business One version 10.0.

Kind regards,

ANKIT CHAUHAN

SAP Business One Support