Quantcast
Channel: Internet Explorer Web Development forum
Viewing all articles
Browse latest Browse all 3527

InvalidCast Exception thrown while accessing the HTMDoc.Frames

$
0
0

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?


Viewing all articles
Browse latest Browse all 3527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>