Need help getting WebBrowser to run on Compact Framework

M

Mike Hill

I am having problems get web browser to work on compact framework 2.0. When
ever I try to load the form with the web browser I get this error. "Active X
control '8856f961-340a-11d0-a96b-00c04fd705a2' cannot be instantiated
because the current thread is not in a single-threaded apartment." All I
have found is add [STATHREAD] in front of the main statement of my
application. But compact framework does not support [STATHREAD].

Does anybody have a work around or a better idea.

Thanks for any help
 
T

Tomer Gabel

Hello Mike,

Make sure you are compiling against the .NET Compact Framework reference
DLLs -- as far as I know, the WinCE COM implementation doesn't really give
you much choice in the matter, so these things should "just work."

Did you manage to reproduce this in a separate project?

Regards,
Tomer Gabel (http://www.tomergabel.com)
Monfort Software Engineering Ltd. (http://www.monfort.co.il)
 
M

Mike Hill

I created a simple CE Project and dropped the web browser on the form. The
application is doing nothing else. As soon as I start the application I am
getting this error.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top