Hi,
I am using CCF framework for automation of the web applications. I am using CCF.Web.Browser control provided by CCF framework with MSHTML.dll to make work automations. I am having frames controls on the web page
My problem is I have a code in which there's one UI thread and inside that Thread I am spawning another threads(one at a time). The issue is when I run the code first time it works the fine without any errors. but second time when I runs the same code it throws the System.InvalidCastException( from COM exception).
I can't understand why it's working first time and not the second time ? does any one have any idea? Does it happens because I've used the threads?