Skip to Content

DI API - Failing to register/unregister SAPbobsCOM.dll

Hello everyone

I'm quite a novice in SAP and its integration. I've developed a small console application in C# that read csv files and write data in SAP Business One. To do so, I added a reference to the library SAPbobsCOM90.dll.

However, when I generate an installer (install-shield) and that I deploy my application on any computers, I get the following message during the installation:

Error 1904. Module C:\...\SAPbobsCOM90.dll failed to register. HRESULT - 2147220473. Contact your support personnel.

I tried to deploy this application on a computer that has SAP Business One 9.x and the DI API already. But I also got the same result from with a computer that has none of them installed.

Anyone experienced that problem? What should I do? What is the best practice?

Thank you in advance.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Nov 28, 2017 at 04:13 PM

    Try to run your console app using administrator and make sure that those PC you are trying to install your apps has SAP DI API 32bit.


    Regards,

    Add comment
    10|10000 characters needed characters exceeded

  • Dec 02, 2017 at 08:45 AM

    Hi Frederic,

    For the SAP Customization to run, it will require that the DI API (SAPbobsCOM) is already installed on the target PC.
    Install this from SAP Installer.
    Your Addon itself, just need to reference the SAPbobsCOM, no need to register again on the target pc.
    By default installshield will automatically register this dll.
    When you create the installshield installer, at the step of selecting the project output, you can choose NOT to register this.

    Regards

    Edy

    Add comment
    10|10000 characters needed characters exceeded

  • Nov 29, 2017 at 12:02 PM

    I already tried (for the installer), but with no result.

    Add comment
    10|10000 characters needed characters exceeded