window server上关于edge模块的问题
发布于 9 年前 作者 c15881291595 3625 次浏览 最后一次编辑是 8 年前 来自 问答

今天在window server2008上部署node 代码里有edge调用dll的一些方法,dll是4.0的 服务器上装有framework4.0 但是执行的时候直接退出 没有报任何错误,测试了三台服务器,相同配置,其中两台node直接退出,有一台可以成功运行,甚是不解,有哪位大虾能解答一下嘛~~~~

测试代码如下

console.log(11); var edge = require(“edge”); var GetSystemInfo= edge.func(function(){ /* #r “DTH.DetectionSystem.dll” async(data)=>{ var input=(System.Collections.Generic.IDictionary<string,object>)data; int nettype = Convert.ToInt32( input[“nettype”]);
DTH.DetectionSystem.ServerDetection c = new DTH.DetectionSystem.ServerDetection(); return c.GetSystemInfo(nettype); } */ }); console.log(22);

第一个能打印,第二个console不能打印直接退出

4 回复

console.log(11); var edge = require(“edge”); var GetSystemInfo= edge.func(function(){ /* async(data)=>{ return data; } */ }); console.log(22);

这样都不行。。。

.Net需要4.5

@hainee 我三台服务器都是一样的.net4.0 但是其中一个可以 另外两个确不行。。

@c15881291595 说了嘛,必须要4.5版本,应为要4.5版本才支持async

回到顶部