cancel
Showing results for 
Search instead for 
Did you mean: 

DI API - Failing to register/unregister SAPbobsCOM.dll

Former Member
0 Kudos

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.

former_member233854
Active Contributor
0 Kudos

How are you generating your installer?

Former Member
0 Kudos

On Visual Studio 2012, I add an InstallShield Limited Edition project in my solution. I follow the instructions from http://www.c-sharpcorner.com/UploadFile/cb88b2/simple-steps-to-create-setup-file-using-install-shiel.... SAPbobsCOM90 was added as a reference to the main project.

Accepted Solutions (0)

Answers (3)

Answers (3)

edy_simon
Active Contributor

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

Former Member

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,

Former Member
0 Kudos

Thank you, I will try.

Former Member
0 Kudos

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

Former Member
0 Kudos

See my updated answer.

Former Member
0 Kudos

Thanks, I will try.