0

I'm new in Node.js, and I use edge for my app.

In app.js I have this code

var edge = require('edge');

var helloWorld = edge.func(function () {/*
    async (input) => { 
        return ".NET Welcomes " + input.ToString(); 
    }
*/});

helloWorld('JavaScript', function (error, result) {
    if (error) throw error;
    console.log(result);
});

When i run it i have this error

Exception non gérée : System.MissingMethodException: Méthode introuvable : 'Bool ean System.Web.Script.Serialization.ScriptIgnoreAttribute.get_ApplyToOverrides() '. à ClrFunc.MarshalCLRObjectToV8(Handle* , Object netdata) à ClrFunc.MarshalCLRExceptionToV8(Handle* , Exception exception) à ClrFunc.Initialize(Handle* , Arguments* args) à initializeClrFunc(Handle* , Arguments* args)

Have you any idea how solving this problem? Thanks

TylerH
  • 20,799
  • 66
  • 75
  • 101
user3620514
  • 75
  • 1
  • 1
  • 4
  • Can you please translate your error message to English? And this is a .NET Framework exception. Show your C# code as well. – Soner Gönül Dec 08 '14 at 11:06
  • Unhandled exception : System.MissingMethodException: method not found : 'Boolean System.Web.Script.Serialization.ScriptIgnoreAttribute.get_ApplyToOverrides() '. to ClrFunc.MarshalCLRObjectToV8(Handle* , Object netdata) to ClrFunc.MarshalCLRExceptionToV8(Handle* , Exception exception) to ClrFunc.Initialize(Handle* , Arguments* args) to initializeClrFunc(Handle* , Arguments* args) – user3620514 Dec 08 '14 at 11:14

1 Answers1

0

It's basically caused by using the wrong .net version. That's why it cannot find the javascriptserialiser class.

Please read this for more details: Cannot find JavaScriptSerializer in .Net 4.0

Community
  • 1
  • 1