all groups > dotnet compact framework > february 2007 >
You're in the

dotnet compact framework

group:

Need help getting WebBrowser to run on Compact Framework



Need help getting WebBrowser to run on Compact Framework Mike Hill
2/28/2007 1:31:17 PM
dotnet compact framework: 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.

Re: Need help getting WebBrowser to run on Compact Framework Mike Hill
3/1/2007 9:49:55 AM
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
Re: Need help getting WebBrowser to run on Compact Framework Tomer Gabel
3/1/2007 11:36:34 AM
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)


[quoted text, click to view]

Re: Need help getting WebBrowser to run on Compact Framework Tomer Gabel
3/4/2007 3:06:05 PM
Hello Mike,

Very strange. Are you running against a device? Can you try another one and/or
the emulator? If yes, what sort of device is that?

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


[quoted text, click to view]

AddThis Social Bookmark Button