iisnode 处理请求时遇到错误 [英] iisnode encountered an error when processing the request

查看:37
本文介绍了iisnode 处理请求时遇到错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用节点 js 编写的服务器端检查 angularjs 应用程序,这是我通过 webmatrix 运行时遇到的错误

I'm trying to check angularjs app with a server side written in node js and this is an error i get when i run in by webmatrix

iisnode 在处理请求时遇到错误.

iisnode encountered an error when processing the request.

HRESULT: 0x2 
HTTP status: 500 
HTTP reason: Internal Server Error 

您收到此 HTTP 200 响应是因为 system.webServer/iisnode/@devErrorsEnabled 配置设置为'真实'.

You are receiving this HTTP 200 response because system.webServer/iisnode/@devErrorsEnabled configuration setting is 'true'.

除了node.exe进程的stdout和stderr的日志,考虑使用调试和 ETW 跟踪来进一步诊断问题.

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.

node.exe 进程没有写入任何信息到 stderr 或iisnode 无法捕获此信息.常见的原因是iisnode 模块无法创建日志文件来捕获node.exe 的 stdout 和 stderr 输出.请检查身份运行 node.js 应用程序的 IIS 应用程序池的已读取并对服务器上的目录写入访问权限node.js 应用程序所在的位置.或者,您可以禁用日志记录通过设置 system.webServer/iisnode/@loggingEnabled 元素web.config 为假".

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'.

有人知道如何解决吗?

推荐答案

您的应用程序池似乎没有足够的权限来写入当前文件夹.

Your application pool doesn't seem to have enough permissions to write to the current folder.

  1. 您可以编辑权限以授予 IIS_IUSRS 组对该文件夹的写入权限

  1. You can either edit the permissions to give the IIS_IUSRS group write permissions to that folder

进入高级设置菜单,在流程模型"->身份"下将用户帐户更改为已具有写入权限的用户.

Go into the advanced settings menu and under Process Model -> Identity change the user account to a user that already has write permissions.

这篇关于iisnode 处理请求时遇到错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆