cancel
Showing results for 
Search instead for 
Did you mean: 

Trying to connect to Business One with DI API C#

0 Kudos

Hello, I'm getting an error message on this line : oCompany = new SAPbobsCOM.Company();

The erro message :

Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))

Erreur source:


Ligne 61 :         public string Connexion()
Ligne 62 :         {
Ligne 63 :             oCompany = new SAPbobsCOM.Company();

Accepted Solutions (0)

Answers (1)

Answers (1)

ANKIT_CHAUHAN
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

Make sure that the add-on platform is set as per the DI API installation. If you are using 64-Bit DI API, select Add-on Platform as "X64". If you are using 32-Bit DI API, select Add-on Platform as "X86".

Hope it helps!

Kind regards,

ANKIT CHAUHAN

SAP SME Support