ActiveX control '8856f961-340a-11d0-a96b-00c04fd705a2' cannot be instantiated

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vijishoba
    New Member
    • Jun 2007
    • 1

    ActiveX control '8856f961-340a-11d0-a96b-00c04fd705a2' cannot be instantiated

    i call webpage from my windows application,the following error will occur,so i include to dlls namely SHDocVw.dll and AxSHDocVw.dll,

    ActiveX control '8856f961-340a-11d0-a96b-00c04fd705a2' cannot be instantiated because the current thread is not in a single-threaded apartment.

    and also i include STAthread in my main method ,any how i will get the following error, the type or namespace name 'STAThread' could not be found (are you missing a using directive or an assembly reference?)

    any body [please help me
  • pbmods
    Recognized Expert Expert
    • Apr 2007
    • 5821

    #2
    Moving to the Windows forum....

    Comment

    • epots9
      Recognized Expert Top Contributor
      • May 2007
      • 1352

      #3
      some1 with the same problem:http://www.thescripts.com/forum/thread158763.html

      good luck

      Comment

      • bartonc
        Recognized Expert Expert
        • Sep 2006
        • 6478

        #4
        Looks like a .NET question. I'll move it there.

        Sorry, dot netters, if I'm wrong about this.

        Comment

        Working...