|
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.aspxThanks in advance.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
Hi,
Please use EngineOptions.Default.CachePath instead.
Thanks!
|
|
Rank: Member Groups: Member
Joined: 11/12/2015 Posts: 10
|
Done and working :)
Thank you for your quick response.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
Great! Please feel free to let us know if there is anything else.
|
|
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?
|
|
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.aspxThanks!
|
|
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>
|
|
Rank: Advanced Member Groups: Member
Joined: 10/7/2015 Posts: 35
|
I did find this: EO.WebBrowser.Runtime.CachePath = "";
|
|
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!
|
|