|
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
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
Hi,
All "ScriptCall" types have been renamed to "ScriptTask". So ScriptCallDoneEventArgs would be ScriptTaskDoneEventArgs.
Thanks!
|
|
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,
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
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!
|
|