Welcome Guest Search | Active Topics | Sign In | Register

EO.WebBrowser.JSArray works in one project, but not in the other Options
tmigh
Posted: Wednesday, October 4, 2017 10:45:08 AM
Rank: Member
Groups: Member

Joined: 1/16/2016
Posts: 16
Hello!

I have 2 projects, and in one of them, this code compiles perfectly fine and works perfectly:

Dim linksArray As EO.WebBrowser.JSArray = _Browser.WebView.EvalScript(String.Format("(function(){{ {0} }})()", html))

For Each obj As Object In linksArray

For the other project, the error "Expression is of type 'EO.WebBrowser.JSArray', which is not a collection type" is raised in the IDE and at compilation time.

The imports for both projects are also the same, I simply say "Imports EO.WebBrowser" at the top of the class.
That's it, as far as I've seen.

I have no idea what I might have done so that it isn't working on the one project.
All my EO code is encapsulate in one class, and I'm using the same version from NuGet.

Does anybody have any idea what I might check?

Edit:

I was wrong, in the project where it's working, I'm using the local installation

C:\Program Files (x86)\Essential Objects\EO.Total 2017\EO.WebBrowser.dll
17.1.76.0
Runtime v2.0.50727

And in the failing project I use the latest from NuGet:
17.2.92.0
Runtime v2.0.50727

Why is my code failing with the latest EO.Webbrowser.dll, and how can I fix this?

eo_support
Posted: Wednesday, October 4, 2017 11:14:28 AM
Rank: Administration
Groups: Administration

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

JSArray has been removed in newer builds. You would need to replace it with object array. So the code will be something like:

Code: Visual Basic.NET
Dim linksArray as Object()


Hope this helps.

Thanks!
tmigh
Posted: Wednesday, October 4, 2017 12:38:38 PM
Rank: Member
Groups: Member

Joined: 1/16/2016
Posts: 16
Thanks, works fine.


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.