Forum Discussion

epatton's avatar
epatton
Occasional Contributor
9 years ago
Solved

"Can not create TestComplete object" Error even after running as admin

I'm trying to run TestComplete in a C# project in Visual Studio using the AutomatedQA dll's, but I'm running into an issue.

 

I have a project that simply opens IE and sets the URL. Whenever I try to run it in debug mode, I get the following error at the RunTest(...) line:

 

"Can not create TestComplete object"

 

I did some searching and found someone who fixed this by either running the exe in the bin folder as an admin or by running Visual Studio as an admin. I'm able to run the exe as an admin with no issues (it opens IE and points it to the URL), but I still get the error in debug mode.

 

I have my PJS file included in my project and made sure it's getting copied over to my bin/debug folder, I made sure the path is correct, and I added a manifest file to make sure I can't even run debug mode for this project unless I'm running Visual Studio as an administrator.

 

I'm not sure what else to try here. Does anyone have any suggestions of what else could be going on? It's just odd that it's working with the exe but not in debug mode.