2015-01-13 7 views
0

.NET 4.5.2 및 VC++ 2013 Redist가 설치된 Windows 2008 R2 서버에서 간단한 C# 콘솔 응용 프로그램을 실행할 수 없습니다.EdgeJS가 Win2008 R2에서 실행되지 않습니다.

코드는이 오류 메시지가 어떤 도움을 이해할 수있을 것이다

module.js:356 
Module._extensions[extension](this, filename); 
          ^
Error: The specified module could not be found. 
C:\EdgeTest\edge\x86\edge.node 
at Module.load (module.js:356:32) 
at Function.Module._load (module.js:312:12) 
at Module.require (module.js:364:17) 
at require (module.js:380:17) 
at Object. (C:\EdgeTest\edge\edge.js:40:8) 
at Module._compile (module.js:456:26) 
at Object.Module._extensions..js (module.js:474:10) 
at Module.load (module.js:356:32) 
at Function.Module._load (module.js:312:12) 
at Module.require (module.js:364:17) 

입니다
static void Main(string[] args) 
{ 
    try 
    { 
     var func = Edge.Func(@"return function (data, callback) {callback(null, 'Node.js ' + process.version + ' welcomes ' + data);}");  
     var result = func(".Net"); 
     Console.WriteLine(result.Result); 
    } 
    catch (Exception ex) 
    { 
     Console.WriteLine(ex.ToString()); 
    } 

     Console.Read(); 
} 

이하!

답변

0

빌드 플랫폼을 x64로 변경하면 코드가 작동합니다. 그것은 AnyCPU beforfe에 있었고 edgejs는 항상 edge.node의 x86 버전을로드했습니다.

+0

나는 똑같은 짓을했는데, 도움이되지 않았다. – TDaver