cancel
Showing results for 
Search instead for 
Did you mean: 

connection with DI is failed

Former Member
0 Kudos

Hi Experts,

I have created a simple addon program. In which i want to conect with UI and DI both It conect with UI properly but when it connect wih DI it show the following message.

Unable to cast COM object of type 'SAPbobsCOM.CompanyClass' to interface type 'SAPbouiCOM.Company'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{195BCB8E-4D2F-4950-947C-9E3523929229}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)).

Thank in Advance

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

Which version of SAP you are using?

Thanks

Rupinder

Former Member
0 Kudos

Hi,

The most probable cause is that you havnt update the DI-API.

May be you update the version of B1 but not adding the latest SAPBobs to your code

Former Member
0 Kudos

am also face this problem pls anybody solve this

Edited by: RavinderKumarThippani on Nov 16, 2010 11:15 AM

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi there,

Can you post the code you're using to connect?

Former Member
0 Kudos

Hello Gorge,

Are you deploying on a 64bit server? You must build your project with any processor (properties of your .net project).

Search it on the forum.

Maybe it's not a solution but I hope that I give you a push in the good direction

HTH.

Regards Teun

Former Member
0 Kudos

Hi Gorge,

It seems it might be an issue with the DI API versions being mismatched. Please try the following:

1. Locate the Temp folder by going to Start -> Run and type %temp%.

2. Locate the SM_OBS_DLL folder here and delete it.

3. Uninstall the DI API from Add/Remove Programs.

4. Reboot your PC

5. Install the DI API from Patch 41.

If the issue still occurs, please post a sample of your connection code.

Regards,

Niall