Welcome Guest Search | Active Topics | Sign In | Register

XBAP in EO.WebBrowser Options
Ray
Posted: Wednesday, October 8, 2014 6:48:05 AM
Rank: Newbie
Groups: Member

Joined: 6/11/2014
Posts: 3
Hi

We have the EO.WebBrowser embedded in a Winform project.
On two different client machines we get different results when loading an XBAP.
Test URL is "http://www.xbap.org/TicTacToe/TicTacToe.xbap"

Machine A opens and runs the XBAP fine.

Machine B offers user option to Download XBAP.

What is different?
I thought EO.WebBrowser was not dependent on any other client extensions installed (other than Fx framework).


eo_support
Posted: Wednesday, October 8, 2014 8:46:03 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,196
Hi,

EO.WebBrowser does not depend on any other browser components but it does automatically scan and load compatible plug-ins that are installed on your machine. Chrome supports XBAP through a FireFox XBAP plug-in (which uses the traditional NPAPI plug-in interface). So if that plug-in exists on your system, then both Chrome and EO.WebBrowser will be able to run XBAP. If it does not exists on your system, then neither Chrome nor EO.WebBrowser will run it, instead it will prompt it for download.

Thanks!
Ray
Posted: Wednesday, October 8, 2014 9:44:14 AM
Rank: Newbie
Groups: Member

Joined: 6/11/2014
Posts: 3
Thanks, I think I get it.
How (and what) does EO.WebBrowser scan? Presumably some registry setting(s) and/or folders.

If I put the XBAP plugin dll somewhere and register it correctly as part of my install then it should work?
So just matter of getting correct registry setting I hope.


eo_support
Posted: Wednesday, October 8, 2014 10:04:11 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,196
Hi,

You do not have to set any registries. EO.WebBrowser will automatically load plugins in the following directory:

1. The same directory of EO.WebBrowser.dll;
2. The directory pointed by this property:

http://www.essentialobjects.com/doc/6/eo.webbrowser.runtime.additionalpluginsdirs.aspx

3. FireFox plugin directory if FireFox is installed on your system;

4. Plugin in at the following registry location:
HKEY_CURRENT_USER\Software\MozillaPlugins
HKEY_LOCAL_MACHINE\SOFTWARE\MozillaPlugins

#1 and #2 would be the easiest way. #2 might be better if the plugin involves many DLLs thus it could be better to put them in a separate folder. We do not know any details about XBAP plug-ins though, so you will need to contact them to find out exactly what files are needed. You can use Chrome to test whether you got all the files and once you got that working, copy them into a folder and set Runtime.AdditionalPluginsDirs property, then it will be loaded by EO.WebBrowser.

Hope this helps. Please feel free to let us know if you still have any questions.

Thanks!
Ray
Posted: Thursday, October 9, 2014 5:26:34 AM
Rank: Newbie
Groups: Member

Joined: 6/11/2014
Posts: 3
Thanks, the additionalplugindirs property worked well.
Very useful feature, and documented well. I will try and read manual more :)
eo_support
Posted: Thursday, October 9, 2014 3:38:09 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,196
Glad to hear that it works for you! Please feel free to let us know if there is anything else.


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.