I am doing a application using Asp.net MVC and In the model, I need to check whether the view page i am going to display have a element of specific id.I tried to use WebBrowser class to traverse my view page but it is showing error message as below.
`ActiveX control '8856f961-340a-11d0-a96b-00c04fd705a2' cannot be instantiated because the current thread is not in a single-threaded apartment.`
at the WebBrowser class.
So Any idea to solve this.