Welcome Guest Search | Active Topics | Sign In | Register

ObjectForScripting is not working properly Options
bnymellon
Posted: Friday, November 25, 2022 2:36:36 AM
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
eo_support
Posted: Monday, November 28, 2022 9:48:12 AM
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!
bnymellon
Posted: Tuesday, November 29, 2022 2:22:57 AM
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
eo_support
Posted: Tuesday, November 29, 2022 9:24:57 AM
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.aspx

Once we have that we will investigate further.

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.