Welcome Guest Search | Active Topics | Sign In | Register

Possible problem with EO.WebBrowse 15.3.16.2 Options
Oscar
Posted: Friday, November 13, 2015 10:12:22 AM
Rank: Member
Groups: Member

Joined: 11/12/2015
Posts: 10
Hi again.

I have just upgrade EO.WebBrowse to the new version 15.3.16.2 and when I try to do this:


Engine.Default.Options.CachePath = "C:\\eocache";

I get a NullReferenceException because EO.WebEngine.Engine.Default is null.

Is this a problem or I missunderstood the documentation?
http://www.essentialobjects.com/doc/webbrowser/advanced/browser_options.aspx

Thanks in advance.

eo_support
Posted: Friday, November 13, 2015 10:22:57 AM
Rank: Administration
Groups: Administration

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

Please use EngineOptions.Default.CachePath instead.

Thanks!
Oscar
Posted: Friday, November 13, 2015 10:43:26 AM
Rank: Member
Groups: Member

Joined: 11/12/2015
Posts: 10
Done and working :)

Thank you for your quick response.
eo_support
Posted: Friday, November 13, 2015 11:41:34 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,229
Great! Please feel free to let us know if there is anything else.
Panda
Posted: Tuesday, January 5, 2016 2:57:09 AM
Rank: Advanced Member
Groups: Member

Joined: 10/7/2015
Posts: 35
Actually, none of the code in the above posts compile for me on 15.2.65 - has the class names changed again?
eo_support
Posted: Tuesday, January 5, 2016 9:10:54 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,229
Panda wrote:
Actually, none of the code in the above posts compile for me on 15.2.65 - has the class names changed again?


The code in the second post is correct. EngineOptions class is in EO.WebEngine namespace. You can find more information here:

http://www.essentialobjects.com/doc/eo.webengine.engineoptions.aspx

Thanks!
Panda
Posted: Tuesday, January 5, 2016 9:55:35 PM
Rank: Advanced Member
Groups: Member

Joined: 10/7/2015
Posts: 35
I can see a EO.WebBrowser.BrowserOptions
But no EO.WebEngine.BrowserOptions

After including the assemblies EO.Base and EO.WebBrowser and EO.WebEngine
Every single line of this code has a compile issue:

EO.WebEngine.BrowserOptions options = new EO.WebEngine.BrowserOptions();
options.AllowJavaScript = false;
options.LoadImages = false;
EO.WebEngine.EngineOptions.Default.SetDefaultBrowserOptions(options);


I've played around with the classes but find it pretty hard to find a replacement that compiles.
The XML doco (EO.WebEngine.xml) suggests there is nothing in WebEngine at all
-<doc>


-<assembly>

<name>EO.WebEngine</name>

</assembly>

<members> </members>

</doc>
Panda
Posted: Tuesday, January 5, 2016 10:14:02 PM
Rank: Advanced Member
Groups: Member

Joined: 10/7/2015
Posts: 35
I did find this:
EO.WebBrowser.Runtime.CachePath = "";
eo_support
Posted: Tuesday, January 5, 2016 11:02:23 PM
Rank: Administration
Groups: Administration

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

If your code does not compile, then most likely you are using a different version or you didn't reference EO.WebEngine.dll. If those are not the reason, then we do not know what else to tell you.

Thanks!


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.