500.1013 error when using iisnode and express
Asked Answered
P

0

13

I have an express app running in my machine. I am even able to run it in production by using node server instead of issnode.

When trying to make it run in iisnode I'm getting the following error when trying to run my express application:

HRESULT: 0x6d
HTTP status: 500
HTTP subStatus: 1013
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'.

I'm accessing to it by the following URL, based on the iisnode examples:

http://localhost/node/parislight/paris/

I gave read and write persmission on iisnode within my express app in (C:\Program Files\iisnode\www\express\bin), and just in case, over the whole express app folder (C:\Program Files\iisnode\www\express). Nothing changed.

I saw an open topic about it in iisnode issues, but no solution was provided.

I've also tried to disable the login by using loggingEnabled :"false" in the web.config file of the express app, but it seems it has no effect and the message keeps appearing.

My app is running on the "Default Web Site" Pool as you can see here: enter image description here

I gave read/write permissions to the whole folder:

enter image description here

Also for the IIS_IUSRS account just in case:

enter image description here

Pronunciation answered 18/11, 2015 at 13:32 Comment(5)
this may sounds obvious, but did you restart the server after changing the config?Languor
Yep. I did (also with iisreset)Pronunciation
@Languor I updated my answer with links to the relevant files and screenshootsPronunciation
In my case the Default App Pool was running as the Application Pool identity, and I had to give that user Write access.Boyla
Did you ever manage to solve this?Brammer

© 2022 - 2024 — McMap. All rights reserved.