|
Rank: Advanced Member Groups: Member
Joined: 3/10/2020 Posts: 59
|
We are trying to upgrade EO Dlls from 22.1.42.0 to 2023.0.18.0 in our WPF application. In our applications, we are using ObjectForScripting object to expose a function to communicate from WebPage to Native application. It was working fine without any issue in 22.1.42.0, but after upgrading to 2023.0.18.0 we are getting error saying function is not available in Webpage. Can you please advise is there any change related to ObjectForScripting is made between these versions.
Console Error: lightweightshell-aot-with-polyfill.js?20221118090114:5 ERROR TypeError: window.external.CustomFunction is not a function at e.callHandleFlowTo (lightweightshell-aot-with-polyfill.js?20221118090114:5:916970) at e.delegateGoTo (lightweightshell-aot-with-polyfill.js?20221118090114:5:916574) at e.gotoEvent (lightweightshell-aot-with-polyfill.js?20221118090114:5:917640) at Object.handleEvent (lightweightshell-aot-with-polyfill.js?20221118090114:5:1507999) at Object.handleEvent (lightweightshell-aot-with-polyfill.js?20221118090114:5:581051) at Object.handleEvent (lightweightshell-aot-with-polyfill.js?20221118090114:5:602656) at mr (lightweightshell-aot-with-polyfill.js?20221118090114:5:532284) at lightweightshell-aot-with-polyfill.js?20221118090114:5:574540 at HTMLDocument.<anonymous> (lightweightshell-aot-with-polyfill.js?20221118090114:5:1076348) at t.invokeTask (lightweightshell-aot-with-polyfill.js?20221118090114:1:10188) dn @ lightweightshell-aot-with-polyfill.js?20221118090114:5
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
Hi,
Please check if the object you pass to ObjectForScripting has been obfuscated. It should not be obfuscated.
Thanks!
|
|
Rank: Advanced Member Groups: Member
Joined: 3/10/2020 Posts: 59
|
Hi, We did not obfuscate object we pass for ObjectForScripting. It was working in older version and it is not working in current version. Please advise
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
Hi, We are not aware of anything that can cause an existing function not to be found. If you continue to have problems, please try to isolate the problem into a test project and send the test project to us. See here for more details: https://www.essentialobjects.com/forum/test_project.aspxOnce we have that we will investigate further. Thanks!
|
|