0

I am using a webbrowser to crawl through a website and sometimes I get this DisconnectedContext was detected exception...

It seems that it happens when I call the Webbrowser.InvokeScript method.

Has anyone encounterd this error before?

It does not happen all the time.

Amit Raz
  • 5,370
  • 8
  • 36
  • 63
  • Why are you using WebBrowser instead of WebClient or WebRequest? – Ansis Māliņš Jul 16 '12 at 11:59
  • @AnsisMalins I need to change several comboboxes in the site, invoke scripts and then parse the webpage. It is a long process when its done several times. As far as I know using a webbrowser is much easier than imitating everything with webrequests – Amit Raz Jul 16 '12 at 12:09

0 Answers0