First I've installed the latest Edge Nuget Package. Then I'm running the basic hello world starting example and have been running into this error on Windows 2010 w/ Visual Studio 2015.
When I execute the same hello world code on OS-X I get this error.
Here's a break out of the locals variable tree. Looks like the error might be similar.
The code looks like this. It is literally copied from the README.md of the repo.
using System;
using System.Threading.Tasks;
using EdgeJs;
class Program
{
public static async void Start()
{
var func = Edge.Func(@"
return function (data, callback) {
callback(null, 'Node.js welcomes ' + data);
}
");
Console.WriteLine(await func(".NET"));
Console.ReadKey();
}
static void Main(string[] args)
{
Task.Run((Action)Start).Wait();
}
}
Resolved this problem by copying the folder edge into the bin folder.
Reference: https://github.com/tjanczuk/edge/issues/565#issuecomment-315343743