Closed NamanGajjar26 closed 1 year ago
Hi @NamanGajjar26,
this newfunction return this {[undefined]} or {Microsoft.ClearScript.V8.V8ScriptItem.V8ScriptObject}
As shown above, newfunction
returns no value; that is, it always returns undefined
. Also, your Index
method doesn't compile, because it doesn't return anything. Please clarify or provide a more complete sample.
get this error UnderlyingSystemType = '((Microsoft.ClearScript.ScriptItem)promiseResult).UnderlyingSystemType' threw an exception of type 'System.NotImplementedException'
We've tested your code in a newly created ASP.NET Core project, and we didn't see that exception. It's true that script objects in ClearScript throw NotImplementedException
for the UnderlyingSystemType
property, but we aren't clear about why that property is being invoked. Can you share a stack trace?
Thanks!
solved this error
thank you for answering my question
In this code I am using microsoft.clearscript.v8 library in c# (asp .net core mvc)
how to solve this error '((Microsoft.ClearScript.ScriptItem)promiseResult).UnderlyingSystemType' threw an exception of type 'System.NotImplementedException' in server side javascript run on asp .net core mvc
this below code is Home controller in call js file()
this below code in JavaScript NewScript.js
this newfunction return this {[undefined]} or {Microsoft.ClearScript.V8.V8ScriptItem.V8ScriptObject}
get this error UnderlyingSystemType = '((Microsoft.ClearScript.ScriptItem)promiseResult).UnderlyingSystemType' threw an exception of type 'System.NotImplementedException'