Jump to content

How to fix ActiveX control '8856xxxx-xxxxl cannot be instantiated error in C#?

- - - - -

  • Please log in to reply
2 replies to this topic

#1
nighthawk

nighthawk

    Newbie

  • Members
  • Pip
  • 5 posts
Hi, I am having trouble getting a web browser in my form to work. When I run, I get this error ActiveX control '8856f961-340a-11d0-a96b-00c04fd705a2' cannot be instantiated because the current thread is not in a single-threaded apartment.

It takes me to the form designer.cs file to this text this.webBrowser2 = new System.Windows.Forms.WebBrowser(); and I really do not know what to do to get thebrowser working.

Thanks

#2
nighthawk

nighthawk

    Newbie

  • Members
  • Pip
  • 5 posts
Please I need help this happens on every form I create every browser I add. I read through another forum it said something about [STAThread] in the program.cs its already there doesn't work same with [MTAThread]

#3
nighthawk

nighthawk

    Newbie

  • Members
  • Pip
  • 5 posts
Please sorry for double post but i need help!!!




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users