계획 Node.js를 사용하여 Windows 하늘빛 웹 사이트에서 새 프로젝트를 구축, 나는, SQL 서버 모듈 문제에 그 나는 단지 캔트 해결을 실행 나는 0.6 노드를 다운 그레이드 할 수 있었더라도, 예 내 PC에서 로컬로 작동마이크로 소프트 애저 노드 SQLSERVER 문제
var sql = require('node-sqlserver');
var http = require('http');
var conn_str = "Driver={SQL Server Native Client 10.0};Server=tcp:server.database.windows.net,1433;Database=database;[email protected];Pwd=mypass;Encrypt=yes;Connection Timeout=30;";
var port = process.env.port||3000;
http.createServer(function (req, res) {
sql.query(conn_str, "SELECT * FROM testdb.testtable", function (err, results) {
if (err) {
res.writeHead(500, { 'Content-Type': 'text/plain' });
res.write("Got error :-(" + err);
res.end("");
return;
}
res.writeHead(200, { 'Content-Type': 'text/plain' });
res.end(JSON.stringify(results));
});
}).listen(port);
, 푸른 SQL에 연결하고 행을 검색 할 수 있습니다 : 모듈, 예로부터 간단한 코드로, 푸른 연결은 SQL 서버 호스팅 .19 작동하도록 만들지 만 Azure에 배포 할 때 실패합니다. 나는 오랜 시간을 대기 한 후, 웹 사이트에 액세스하려고 할 때 나는 나타납니다
iisnode encountered an error when processing the request.
HRESULT: 0x6d
HTTP status: 500
HTTP reason: Internal Server Error
You are receiving this HTTP 200 response because system.webServer/iisnode/@devErrorsEnabled configuration setting is 'true'.
In addition to the log of stdout and stderr of the node.exe process, consider using debugging and ETW traces to further diagnose the problem.
The node.exe process has not written any information to the stdout or stderr.
나는 소스 노드 SQLSERVER 모듈을 컴파일했는데, 다시는 푸른에서 같은 결과를 내 PC에했다. 또한 모듈 바이너리가 배포되었는지 확인했습니다 (저는 git을 사용하여 배포하고 있습니다).
아이디어가 있으십니까?