Forum Discussion
- AlexKarasChampion Level 3Hi,
When TestComplete/TestExecute opens project that contains events (e.g. OnLogError, OnStartTest, etc.) it generates and registers a type library (.tlb) that proxies the given project to the COM server (provided by TestComplete) that implements the support for project events. When the project is closed, TestComplete unregisters type library.
The mentioned error means that something went wrong while generating and registering type library (e.g. access permissions, especially in the case when the project is opened in the networked mode, etc.).
As a workaround, when the project was opened without the error (which means that type library was created and registered), it is possible to clear the 'Unregister the type library when the project is closed' option found under the Tools|Options|Engines|Events main menu path.
Clearing this option will keep the potentially unnecessary registration information in the registry, but on the other hand, TC will not generate/register .tlb every time when the project is opened as the required information will already exist in the system.
Hope, this will help... - TanyaYatskovskaSmartBear Alumni (Retired)
Hi Harlan,
Can you locate the code line that is being executed when this error appears? Post it here.
BTW, does this occur in TestComplete 9.10?
- Hello i have the same problem! Yes it occurs in TC 9.10
- TanyaYatskovskaSmartBear Alumni (Retired)
Hi Egor,
Can you locate the place in your code where the issue occurs? Does it persist every time you execute the test or sometimes?
- ray_mosleyFrequent ContributorI have not been able to find the location where this occurs. Since I have upgraded to 9.10.1894 I have not seen this error, although I am still having timing/performance issues.
- Did you ever figure out what was going on here? We just upgraded from 8.x to 9.20 and are seeing the same error and behavior.
Thanks! - TanyaYatskovskaSmartBear Alumni (Retired)
Hi David,
The question for you is the same:
Can you locate the code line that is being executed when this error appears? Post it here.
- agabrielContributorIt happens for me too and when it does, all of my General Events Handlers assignments reset.
- agabrielContributorIt only happens periodically. Sometimes it will happen and other times it won't for the same script.
- agabrielContributorPing!
I still get this error on occassion and I also get it in TestExecute but I can't pinpoint what is causing it. When I click the 'OK' button on that message, another message always appears that reads:
Unable to create an Event Control instance.
Make sure that TestComplete 9 is installed correctly and the testComplete service is running.
Related Content
Recent Discussions
- 3 days ago