【发布时间】:2018-08-22 16:25:51
【问题描述】:
我运行我的 Node.js 应用程序并遇到严重错误
iisnode encountered an error when processing the request.
HRESULT: 0x2
HTTP status: 500
HTTP subStatus: 1002
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 stderr or iisnode was unable to capture this information. Frequent reason is that the iisnode module is unable to create a log file to capture stdout and stderr output from node.exe. Please check that the identity of the IIS application pool running the node.js application has read and write access permissions to the directory on the server where the node.js application is located. Alternatively you can disable logging by setting system.webServer/iisnode/@loggingEnabled element of web.config to 'false'.
有人说错误来自 env.Port 其他人说来自 webconfig 我需要设置为 server.js ,我已经设置了它,即使我删除它我也得到了同样的错误。
在 3 天内我无法弄清楚我做错了什么,我尝试了使用和不使用 web.cofig。 我错过了什么吗? 此外,与 MongoDB 的连接是使用 Azure 门户提供的字符串设置的。
【问题讨论】:
标签: node.js azure express iis iisnode