Skip to Content

Trying to connect to Business One with DI API C#

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();
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Aug 04, 2017 at 09:50 AM

    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

    Add comment
    10|10000 characters needed characters exceeded