I am working on a WPF application. I have used two “tasks” inside a button click event for parallel execution.
One task calls “Method1” which downloads files from a server. The second task calls “Method2”.
Method2 contains the following operations:
- Download 2 files from a server
- Parse & read the files' contents
- Scrape a site to fetch site details
In the scraping operation, we are creating a WebBrowser object to load the site's contents.
The issue is that - while executing the button_click event - I am getting the following error:
How can I solve this issue? Any help would be appreciated.
Thanks,
Ranish