Forum Discussion

kanya's avatar
12 years ago

Run error ActiveX component can't create object

Hi,



I am executing scripts in testcomplete. I am receiving "run error ActiveX component can't create object" while creating an object in the script

Please let me know how to fix this issue.

I have a .dll file where can i add it in testcomplete ?



Thanks,

kanya

3 Replies


  • Hi Kanya,



    Please clarify what object you want to create. Post your script here and specify on which code line the error appears. Also, please let me know which OS you have.
    • mithileshmaurya's avatar
      mithileshmaurya
      Occasional Contributor

      var object = Connect.Sys["Browser"]("chrome");

       

      This line when run through visual studio give me the error "Cannot create ActiveX component"

      • agapych's avatar
        agapych
        New Contributor

         


        mithileshmaurya wrote:

        var object = Connect.Sys["Browser"]("chrome");

         

        This line when run through visual studio give me the error "Cannot create ActiveX component"


        I had the same issue when trying to use Connected apps on some environments.

         

        The root cause of the issue was that TestComplete DLLs referenced in my C# project had lower version (TC10) than the TestComplete version installed on the environment (TC11).

         

        After updating the referenced DLLs to the ones from TC11 the problem was fixed.