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?
|
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!
|
Rank: Member Groups: Member
Joined: 1/16/2016 Posts: 16
|
Thanks, works fine.
|