我已经在我的Ubuntu机器上安装并测试了带有mono的边缘,它通过了所有的测试。不幸的是,edge-sql无效。我想向SQL服务器数据库发出请求,我收到以下错误:
Missing method System.Data.SqlClient.SqlCommand::ExecuteReaderAsync(CommandBehavior) in assembly /usr/local/lib/mono/gac/System.Data/4.0.0.0__b77a5c561934e089/System.Data.dll, referenced in assembly /home/merca/login/oauth-server/node_modules/edge-sql/lib/edge-sql.dll
Method not found: 'System.Data.SqlClient.SqlCommand.ExecuteReaderAsync'.
http.js:691
throw new Error('Can\'t set headers after they are sent.');
^
at ServerResponse.OutgoingMessage.setHeader (http.js:691:11)
at ServerResponse.res.setHeader (/home/merca/login/oauth-server/node_modules/express/node_modules/connect/lib/patch.js:62:20)
答案 0 :(得分:0)
Mono中的SqlCommand实现目前没有ExecuteReaderAsync
方法。
尝试使用同步ExecuteReader
或Begin/EndExecuteReader
方法。