node.js confusion

Discussion in 'General troubleshooting' started by Raziaar, Aug 22, 2015.

  1. Why am I getting these errors trying to run nodejs? Been at this for hours. Node.js isn't something i'm familiar with, but I'm trying to get it working on the webserver.



    iisnode encountered an error when processing the request.

    HRESULT: 0x2
    HTTP status: 500
    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 last 64k of the output generated by the node.exe process to stdout and stderr is shown below:

    E:\web\********\htdocs\testing\server.js:1
    <configuration>
    ^

    module.js:434
    var compiledWrapper = runInThisContext(wrapper, filename, true);
    ^
    GetConsoleTitleW: The handle is invalid.

    SyntaxError: Unexpected token <
    at Module._compile (module.js:434:25)
    at Object..js (module.js:464:10)
    at Module.load (module.js:353:31)
    at Function._load (module.js:311:12)
    at Array.0 (module.js:484:10)
    at EventEmitter._tickCallback (node.js:190:38)
     
  2. RayH

    RayH DiscountASP.NET Lackey DiscountASP.NET Staff

  3. Yes. I'm getting it precisely because I added that handler from that blog.

    I also added a bit more to the config file so I can go to .js/debug

    It gives me a little more information:

    The iisnode module is unable to deploy supporting files necessary to initialize the debugger. 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.
     

Share This Page