I have two machines configured exactly the same. I am using a VB Script to invoke a Visual Basic document which in turn calls an ActiveX Control (written in VC++) to bring up an ActiveX document. The document is displayed successfully on one machine, and fails to get displayed on the other. The error displayed is:
Run time error '-2147417848 (80010108)': Automation error The object invoked has disconnected from its clients
Debugging the code shows that it fails on the following line of code in the Visual Basic program:
Set activeXCtrl = UserDocument.Controls.Add(strControlClass, "activeXCtrl")
I tried to add strControlClass to the Licenses collection, but I got an error saying that this was not required. I have unregistered, and re-registered the ActiveX control, and the Visual Basic document.
Has anyone seen this problem described? Does anyone have a solution to fix this? It baffles me that it works on one machine, and doesn't work on the second machine, and they have exactly the same configuration. Could you please let me know what are the Microsoft Visual Basic DLLs involved in this scenario?
Thanks, Ipsita.