Welcome Guest Search | Active Topics | Sign In | Register

ScriptCallDoneEventArgs does not exist Options
myWorkspace
Posted: Wednesday, May 29, 2024 6:51:46 PM
Rank: Member
Groups: Member

Joined: 1/6/2016
Posts: 19
Hi,

We have upgraded the EO WebBrowser version from 22.1.67 to 24.0.96 in our project and now we are getting this build error

Error CS0234 The type or namespace name 'ScriptCallDoneEventArgs' does not exist in the namespace 'EO.WebBrowser' (are you missing an assembly reference?)

How do we fix this error?

Thanks
eo_support
Posted: Wednesday, May 29, 2024 9:16:26 PM
Rank: Administration
Groups: Administration

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

All "ScriptCall" types have been renamed to "ScriptTask". So ScriptCallDoneEventArgs would be ScriptTaskDoneEventArgs.

Thanks!
myWorkspace
Posted: Thursday, May 30, 2024 5:41:16 PM
Rank: Member
Groups: Member

Joined: 1/6/2016
Posts: 19
Thanks for your quick reply.

We also see these methods also do not exist in the newer versions

LoadUrlAsync
LoadRequestAsync
EO.Base.WaitableTask.IsAborted
In NewWindowEventArgs (ShowMenuBar, ShowScrollBars, ShowStatusBar, ShowToolBar)
and many more

We are not sure what methods we need use to replace these.

And just for our reference what is the compatible latest version we can upgrade to. We dont want to make any code changes. Please advise the best way to upgrade from v22.1.67

Thanks,
eo_support
Posted: Friday, May 31, 2024 11:32:30 AM
Rank: Administration
Groups: Administration

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

LoadUrlAsync and LoadRequestAsync have been changed to extension methods and you must reference EO.Extensions.dll to use those methods. IsAborted has been changed to IsCanceled.

You should always update to the latest version instead of trying to avoid code changes. While we try our best to avoid breaking changes sometimes it is not possible, and some changes are necessary for the library to support newer platforms/features (such as .NET's built in async feature). So it's not a good idea for you to stay behind just to avoid code changes. We will be more than happy to help you if you need any more help on changing your code.

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.