cancel
Showing results for 
Search instead for 
Did you mean: 

ActiveX Control doesn't support .NET framework 4

Former Member
0 Kudos

Dear SAP,

     I developed an ActiveX control in framework 2.0 , it's run OK. But when I change .NET framework to 4.0 , I cannot run it,  error message:

" Unable to cast COM object of type 'System.__ComObject' to interface type 'SAPbouiCOM.ActiveX'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{5427C1F0-B81F-4505-BC0D-1F60E3111DF3}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE))."

     I tried to build add on in framework 4.0 with out my ActiveX Control , it's run OK, I think SAP B1 SDK doesn't support ActiveX Control build in .NET framework 4.0 . If you can build an Add on using  ActiveXControl build in .Net Framework 4.0 , please help me.

My SAP B1 version is SAP B1 9.0 PL9

Thank you!

Accepted Solutions (0)

Answers (1)

Answers (1)

pedro_magueija
Active Contributor
0 Kudos

Hi Toan,

Are you using any third party libraries with you ActiveX?


Best regards,

Pedro Magueija


View Pedro Magueija's profile on LinkedIn

Former Member
0 Kudos

Hi Pedro,

     I don't use any third party libraries now, but I would like to use Report Viewer  in .Net framework 4.0

pedro_magueija
Active Contributor
0 Kudos

Hi Toan,

Have a look at this tutorial.

It should work fine unless the control itself doesn't support .net 4.0.

The sample in that tutorial does work with .net 4.0.


Best regards,

Pedro Magueija


View Pedro Magueija's profile on LinkedIn