iisnode encountered an error when processing the request

后端 未结 5 1614
时光说笑
时光说笑 2021-01-17 09:49

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 encountered an

相关标签:
5条回答
  • 2021-01-17 09:55

    I fixed this issue by running the setupsamples.bat file. This adds the permissions and other necessary configuration. The path is C:\Program Files\iisnode\setupsamples.bat for me

    0 讨论(0)
  • 2021-01-17 09:58

    Allow, 'Full Control', for user 'IIS_IUSRS', from 'Advanced Security' upon right clicking you'r application root directory.

    Reference

    0 讨论(0)
  • 2021-01-17 10:01

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

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

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

    0 讨论(0)
  • 2021-01-17 10:12

    For me there were no permissions problem because when I did console.log() in the server I got the log in the iisnode forlder.

    I put all the Express in a try code block and in the try I used logged the exception, I have found out that for some reason iisnode lookup in dist/dist/index.html instead of dist/index.html

    Once I have fixed that the error, everything have been solved.

    0 讨论(0)
  • 2021-01-17 10:17

    It looks like your iisnode cannot write its log file, perhaps because it does not have write permissions. If you have access to to the server then you can check inside the app's folder for an iisnode folder, that is where iisnode tries to write its logs by default.

    Until you get this log info you are stuck because the 500 error you are seeing only tells you that the error has occurred on the server somewhere. You need the logs to give you the info you need to proceed.

    The only other alternative is to run the whole thing locally and use something like node-inspector (I use grunt-node-inspector) to debug into the nodeJS code to see what is happening.

    0 讨论(0)
提交回复
热议问题