CE6: Problem with webbrowser control

U

Ulrich Strauss

Hiyas,

I seem to have a strange problem with the webbrowser control:

..NET CF 2.0 SP2 Windows Forms Application.
Form contains a WebBrowser-Control.
If I open a page (Navigate) in the Webbrowser-Control that contains an
OBJECT Tag I can observe the following 2 problems:
a) I receive at least one Exception in rpct4.dll which hints to a
E_NO_INTERFACE problem
b) It looks like the the webbrowser control is not able to
create/accept/read cookies on the device.

If I open the same page in iesample or iesimple, no exception occours and
cookies are created/read as expected.
The most easy way to recreate the problem is a simple html-file which will
include an objecttag to instantiate a mediaplayer-ocx control. As a result
of the problem the mediaplayer.ocx e.g. will not pass on login-cookies for
drm-protected content.

(Callstacks etc available)

I already tried to tie down which interface might cause the problem. But
without any luck.

Anyone has a hint on this?

-Ulrich
 
P

Paul G. Tobey [eMVP]

a) Well, you have to have a suitable Windows CE version of the object on
your device, properly pre-installed, etc. It's not ever going to download
ActiveX controls (they wouldn't work on Windows CE even if it did). If
you're specifying the CLSID of a control that is already installed locally,
I can't think of anything that would cause the problem, unless there's
something that an instance of the browser control does outside of IESample
that it doesn't do inside it (maybe IObjectSafety checks or something, I
suppose).

b) I just whipped up a quick browser program using .NET CF 2.0 and it saves
cookies just fine from the sites I'm visiting (our own and MapQuest). Have
you actually checked for the cookies in
\windows\profiles\<profilename>\Cookies?

You don't say what version of the OS or anything you're using...

Paul T.
 
U

Ulrich Strauss

Hi Paul,

thanks for the quick reply.

As of
a) I also suspect some problem with either IObjectSafety or IObjectWithSite
I am currently digging to try to find the root cause of the problem.
What confuses me a bit is, that the _same_ html page throws exceptions
in control, but loads fine in iesample/iesimple. In iesimple it's just
smooth, and there's nothing vital done additional to what the webbrowser
control does.
I also replaced the webbrowser-control by a custom control, hosting a
iesample-clone, but same result!
Maybe it's some weired security-problem with .NET CF?

b) I checked that already. It looks really weired to me. This happens when
trying to playback DRM Protected contect via Mediaplayer ocx
22D6f312-B0F6-11D0-94AB-0080C74C7E95.
(Preface: Login to DRM-Server via SOAP Webservice)
If I call it via local html file in webbrowser control, drm server will
refuse me (showing login dialog)
if I call it via _same_ html file using iesample, drm server will recognize
me
if I call it via OpenNetCF Media-Control, DRM Server will recognize me.
if i open the stream via ceplayer-Process-creation, DRM Server will
recognize me
For this case I'm currently trying to get hold of the drm-server logs to get
a hint what is happening there.

Environment:
CE 6.0 Professional SKU
OpenNetCF SDF 2.1

Hardware is a ST7109 Design.

Regards,
Ulrich



"Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam DOT
com> schrieb im Newsbeitrag news:[email protected]...
 
P

Paul G. Tobey [eMVP]

I wonder if some of the connections between the main window and various
helpers are not being set up in the .NET CF case, but are, of course, in the
actual browser. There are lots of SetClientSite(), etc. method calls that
IESample makes. Maybe the browser control missed one...

The only way I can imagine to actually find the answer would be to get
enough of the source code to actually see what code is causing the crash and
do something about it. Maybe a simple application sample that generates the
error when connecting to a Microsoft site would be possible. If so, a call
to support for Windows CE Platform Builder would have a chance of finding
the answer. If you find that you can build a really simple test case that
fails, post here and I'll try to get it to someone inside MS that might be
able to find the problem, too.

Paul T.

Ulrich Strauss said:
Hi Paul,

thanks for the quick reply.

As of
a) I also suspect some problem with either IObjectSafety or
IObjectWithSite
I am currently digging to try to find the root cause of the problem.
What confuses me a bit is, that the _same_ html page throws exceptions
in control, but loads fine in iesample/iesimple. In iesimple it's just
smooth, and there's nothing vital done additional to what the webbrowser
control does.
I also replaced the webbrowser-control by a custom control, hosting a
iesample-clone, but same result!
Maybe it's some weired security-problem with .NET CF?

b) I checked that already. It looks really weired to me. This happens when
trying to playback DRM Protected contect via Mediaplayer ocx
22D6f312-B0F6-11D0-94AB-0080C74C7E95.
(Preface: Login to DRM-Server via SOAP Webservice)
If I call it via local html file in webbrowser control, drm server will
refuse me (showing login dialog)
if I call it via _same_ html file using iesample, drm server will
recognize me
if I call it via OpenNetCF Media-Control, DRM Server will recognize me.
if i open the stream via ceplayer-Process-creation, DRM Server will
recognize me
For this case I'm currently trying to get hold of the drm-server logs to
get a hint what is happening there.

Environment:
CE 6.0 Professional SKU
OpenNetCF SDF 2.1

Hardware is a ST7109 Design.

Regards,
Ulrich



"Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam DOT
com> schrieb im Newsbeitrag news:[email protected]...
a) Well, you have to have a suitable Windows CE version of the object on
your device, properly pre-installed, etc. It's not ever going to
download ActiveX controls (they wouldn't work on Windows CE even if it
did). If you're specifying the CLSID of a control that is already
installed locally, I can't think of anything that would cause the
problem, unless there's something that an instance of the browser control
does outside of IESample that it doesn't do inside it (maybe
IObjectSafety checks or something, I suppose).

b) I just whipped up a quick browser program using .NET CF 2.0 and it
saves cookies just fine from the sites I'm visiting (our own and
MapQuest). Have you actually checked for the cookies in
\windows\profiles\<profilename>\Cookies?

You don't say what version of the OS or anything you're using...

Paul T.
 
U

Ulrich Strauss

Hi Paul,

Problems resolved erm workaround :)

Both Problems are related to using Application2 from SDF instead of
Application from CF.
If I rewert to using CF Application class everything works soomthly.
Somehing seems to be odd about the SDF-Application2 Messagepump.

Thanks,
Ulrich

"Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam DOT
com> schrieb im Newsbeitrag news:[email protected]...
I wonder if some of the connections between the main window and various
helpers are not being set up in the .NET CF case, but are, of course, in
the actual browser. There are lots of SetClientSite(), etc. method calls
that IESample makes. Maybe the browser control missed one...

The only way I can imagine to actually find the answer would be to get
enough of the source code to actually see what code is causing the crash
and do something about it. Maybe a simple application sample that
generates the error when connecting to a Microsoft site would be possible.
If so, a call to support for Windows CE Platform Builder would have a
chance of finding the answer. If you find that you can build a really
simple test case that fails, post here and I'll try to get it to someone
inside MS that might be able to find the problem, too.

Paul T.

Ulrich Strauss said:
Hi Paul,

thanks for the quick reply.

As of
a) I also suspect some problem with either IObjectSafety or
IObjectWithSite
I am currently digging to try to find the root cause of the problem.
What confuses me a bit is, that the _same_ html page throws exceptions
in control, but loads fine in iesample/iesimple. In iesimple it's just
smooth, and there's nothing vital done additional to what the webbrowser
control does.
I also replaced the webbrowser-control by a custom control, hosting a
iesample-clone, but same result!
Maybe it's some weired security-problem with .NET CF?

b) I checked that already. It looks really weired to me. This happens
when trying to playback DRM Protected contect via Mediaplayer ocx
22D6f312-B0F6-11D0-94AB-0080C74C7E95.
(Preface: Login to DRM-Server via SOAP Webservice)
If I call it via local html file in webbrowser control, drm server will
refuse me (showing login dialog)
if I call it via _same_ html file using iesample, drm server will
recognize me
if I call it via OpenNetCF Media-Control, DRM Server will recognize me.
if i open the stream via ceplayer-Process-creation, DRM Server will
recognize me
For this case I'm currently trying to get hold of the drm-server logs to
get a hint what is happening there.

Environment:
CE 6.0 Professional SKU
OpenNetCF SDF 2.1

Hardware is a ST7109 Design.

Regards,
Ulrich



"Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam
DOT com> schrieb im Newsbeitrag
a) Well, you have to have a suitable Windows CE version of the object on
your device, properly pre-installed, etc. It's not ever going to
download ActiveX controls (they wouldn't work on Windows CE even if it
did). If you're specifying the CLSID of a control that is already
installed locally, I can't think of anything that would cause the
problem, unless there's something that an instance of the browser
control does outside of IESample that it doesn't do inside it (maybe
IObjectSafety checks or something, I suppose).

b) I just whipped up a quick browser program using .NET CF 2.0 and it
saves cookies just fine from the sites I'm visiting (our own and
MapQuest). Have you actually checked for the cookies in
\windows\profiles\<profilename>\Cookies?

You don't say what version of the OS or anything you're using...

Paul T.
 
P

Paul G. Tobey [eMVP]

Hmmm. That sounds like it should be dropped on the bug report page at
OpenNETCF. That's a specific-enough bug that it should be easily fixable...

Paul T.

Ulrich Strauss said:
Hi Paul,

Problems resolved erm workaround :)

Both Problems are related to using Application2 from SDF instead of
Application from CF.
If I rewert to using CF Application class everything works soomthly.
Somehing seems to be odd about the SDF-Application2 Messagepump.

Thanks,
Ulrich

"Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam DOT
com> schrieb im Newsbeitrag news:[email protected]...
I wonder if some of the connections between the main window and various
helpers are not being set up in the .NET CF case, but are, of course, in
the actual browser. There are lots of SetClientSite(), etc. method calls
that IESample makes. Maybe the browser control missed one...

The only way I can imagine to actually find the answer would be to get
enough of the source code to actually see what code is causing the crash
and do something about it. Maybe a simple application sample that
generates the error when connecting to a Microsoft site would be
possible. If so, a call to support for Windows CE Platform Builder would
have a chance of finding the answer. If you find that you can build a
really simple test case that fails, post here and I'll try to get it to
someone inside MS that might be able to find the problem, too.

Paul T.

Ulrich Strauss said:
Hi Paul,

thanks for the quick reply.

As of
a) I also suspect some problem with either IObjectSafety or
IObjectWithSite
I am currently digging to try to find the root cause of the problem.
What confuses me a bit is, that the _same_ html page throws
exceptions in control, but loads fine in iesample/iesimple. In iesimple
it's just smooth, and there's nothing vital done additional to what the
webbrowser control does.
I also replaced the webbrowser-control by a custom control, hosting a
iesample-clone, but same result!
Maybe it's some weired security-problem with .NET CF?

b) I checked that already. It looks really weired to me. This happens
when trying to playback DRM Protected contect via Mediaplayer ocx
22D6f312-B0F6-11D0-94AB-0080C74C7E95.
(Preface: Login to DRM-Server via SOAP Webservice)
If I call it via local html file in webbrowser control, drm server will
refuse me (showing login dialog)
if I call it via _same_ html file using iesample, drm server will
recognize me
if I call it via OpenNetCF Media-Control, DRM Server will recognize me.
if i open the stream via ceplayer-Process-creation, DRM Server will
recognize me
For this case I'm currently trying to get hold of the drm-server logs to
get a hint what is happening there.

Environment:
CE 6.0 Professional SKU
OpenNetCF SDF 2.1

Hardware is a ST7109 Design.

Regards,
Ulrich



"Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam
DOT com> schrieb im Newsbeitrag
a) Well, you have to have a suitable Windows CE version of the object
on your device, properly pre-installed, etc. It's not ever going to
download ActiveX controls (they wouldn't work on Windows CE even if it
did). If you're specifying the CLSID of a control that is already
installed locally, I can't think of anything that would cause the
problem, unless there's something that an instance of the browser
control does outside of IESample that it doesn't do inside it (maybe
IObjectSafety checks or something, I suppose).

b) I just whipped up a quick browser program using .NET CF 2.0 and it
saves cookies just fine from the sites I'm visiting (our own and
MapQuest). Have you actually checked for the cookies in
\windows\profiles\<profilename>\Cookies?

You don't say what version of the OS or anything you're using...

Paul T.
 
U

Ulrich Strauss

dropped the first bit already ;)

"Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam DOT
com> schrieb im Newsbeitrag news:[email protected]...
Hmmm. That sounds like it should be dropped on the bug report page at
OpenNETCF. That's a specific-enough bug that it should be easily
fixable...

Paul T.

Ulrich Strauss said:
Hi Paul,

Problems resolved erm workaround :)

Both Problems are related to using Application2 from SDF instead of
Application from CF.
If I rewert to using CF Application class everything works soomthly.
Somehing seems to be odd about the SDF-Application2 Messagepump.

Thanks,
Ulrich

"Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam
DOT com> schrieb im Newsbeitrag
I wonder if some of the connections between the main window and various
helpers are not being set up in the .NET CF case, but are, of course, in
the actual browser. There are lots of SetClientSite(), etc. method calls
that IESample makes. Maybe the browser control missed one...

The only way I can imagine to actually find the answer would be to get
enough of the source code to actually see what code is causing the crash
and do something about it. Maybe a simple application sample that
generates the error when connecting to a Microsoft site would be
possible. If so, a call to support for Windows CE Platform Builder would
have a chance of finding the answer. If you find that you can build a
really simple test case that fails, post here and I'll try to get it to
someone inside MS that might be able to find the problem, too.

Paul T.

Hi Paul,

thanks for the quick reply.

As of
a) I also suspect some problem with either IObjectSafety or
IObjectWithSite
I am currently digging to try to find the root cause of the problem.
What confuses me a bit is, that the _same_ html page throws
exceptions in control, but loads fine in iesample/iesimple. In iesimple
it's just smooth, and there's nothing vital done additional to what the
webbrowser control does.
I also replaced the webbrowser-control by a custom control, hosting
a iesample-clone, but same result!
Maybe it's some weired security-problem with .NET CF?

b) I checked that already. It looks really weired to me. This happens
when trying to playback DRM Protected contect via Mediaplayer ocx
22D6f312-B0F6-11D0-94AB-0080C74C7E95.
(Preface: Login to DRM-Server via SOAP Webservice)
If I call it via local html file in webbrowser control, drm server will
refuse me (showing login dialog)
if I call it via _same_ html file using iesample, drm server will
recognize me
if I call it via OpenNetCF Media-Control, DRM Server will recognize me.
if i open the stream via ceplayer-Process-creation, DRM Server will
recognize me
For this case I'm currently trying to get hold of the drm-server logs
to get a hint what is happening there.

Environment:
CE 6.0 Professional SKU
OpenNetCF SDF 2.1

Hardware is a ST7109 Design.

Regards,
Ulrich



"Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam
DOT com> schrieb im Newsbeitrag
a) Well, you have to have a suitable Windows CE version of the object
on your device, properly pre-installed, etc. It's not ever going to
download ActiveX controls (they wouldn't work on Windows CE even if it
did). If you're specifying the CLSID of a control that is already
installed locally, I can't think of anything that would cause the
problem, unless there's something that an instance of the browser
control does outside of IESample that it doesn't do inside it (maybe
IObjectSafety checks or something, I suppose).

b) I just whipped up a quick browser program using .NET CF 2.0 and it
saves cookies just fine from the sites I'm visiting (our own and
MapQuest). Have you actually checked for the cookies in
\windows\profiles\<profilename>\Cookies?

You don't say what version of the OS or anything you're using...

Paul T.
 

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