Error Message: Can not create TestComplete object
Hi
I've opened one of the C# samples, Hello, because I'm creating a Connect Application. However, when I click on the execute button, I get this error message:
System.Exception: Can not create TestComplete object.
at AutomatedQA.script.var.GetObjectAlternative(String Name, String AlternativeName)
at AutomatedQA.TestComplete.Connect.TBaseTCClass.GetTestCompleteIntegration()
at AutomatedQA.TestComplete.Connect.IntegrationClass.Init()
at AutomatedQA.script.var.get_Item(String name, var[] args)
at AutomatedQA.TestComplete.Connect.RunTest(String LogName, String ProjectName, String SuiteName)
at TC_CS_Tester.Form1.button1_Click(Object sender, EventArgs e)
This is the problem line:
TestClass.RunTest("TestLog", "Hello_C#_C#Script", Application.StartupPath + "\\..\\..\\TCProject\\Hello.pjs");
I'm using TestComplete 11.30.2298.7 on Windows 8.1. I've tried it on both Visual Studio Express and Community 2013. I've tried it with TestComplete open and closed. I've also tried it in administrator mode, but to no avail. This also happens with every other sample project. Is there a setting I'm missing?
I've also attached the messagebox that comes up when I click Execute.
Thanks.
Ipeleng
Figured it out. Either:
Right click on Hello.exe > Properties > Run as Administrator; or
Right click on Visual Studio's Shortcut > Properties > Run as Administator.
Here's an article detailing how to run projects as Administrator.