By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,723 Members | 975 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,723 IT Pros & Developers. It's quick & easy.

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

P: 1
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
Jun 27 '07 #1
Share this Question
Share on Google+
3 Replies


pbmods
Expert 5K+
P: 5,821
Moving to the Windows forum....
Jun 27 '07 #2

epots9
Expert 100+
P: 1,351
some1 with the same problem:http://www.thescripts.com/forum/thread158763.html

good luck
Jun 27 '07 #3

bartonc
Expert 5K+
P: 6,596
Looks like a .NET question. I'll move it there.

Sorry, dot netters, if I'm wrong about this.
Jun 28 '07 #4

Post your reply

Sign in to post your reply or Sign up for a free account.