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
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
Allow, 'Full Control', for user 'IIS_IUSRS', from 'Advanced Security' upon right clicking you'r application root directory.
Reference
Your application pool doesn't seem to have enough permissions to write to the current folder.
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.
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.
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.