on 01-06-2015 4:46 AM
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!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
88 | |
7 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.