iisnode encountered an error when processing the request.

HRESULT: 0x6d
HTTP status: 500
HTTP subStatus: 1016
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 stderr is shown below:

Error: Can't set headers after they are sent.
    at validateHeader (_http_outgoing.js:491:11)
    at ServerResponse.setHeader (_http_outgoing.js:498:3)
    at ServerResponse.header (D:\ROLES\IIS\web.infodatek.borrowme\server.js:22322:11)
    at ServerResponse.send (D:\ROLES\IIS\web.infodatek.borrowme\server.js:21721:13)
    at D:\ROLES\IIS\web.infodatek.borrowme\server.js:832:8
    at Layer.handle [as handle_request] (D:\ROLES\IIS\web.infodatek.borrowme\server.js:17648:6)
    at trim_prefix (D:\ROLES\IIS\web.infodatek.borrowme\server.js:16901:14)
    at D:\ROLES\IIS\web.infodatek.borrowme\server.js:16868:8
    at Function.process_params (D:\ROLES\IIS\web.infodatek.borrowme\server.js:16919:13)
    at next (D:\ROLES\IIS\web.infodatek.borrowme\server.js:16859:11)
Error: Can't set headers after they are sent.
    at validateHeader (_http_outgoing.js:491:11)
    at ServerResponse.setHeader (_http_outgoing.js:498:3)
    at ServerResponse.header (D:\ROLES\IIS\web.infodatek.borrowme\server.js:22322:11)
    at ServerResponse.send (D:\ROLES\IIS\web.infodatek.borrowme\server.js:21721:13)
    at D:\ROLES\IIS\web.infodatek.borrowme\server.js:832:8
    at Layer.handle [as handle_request] (D:\ROLES\IIS\web.infodatek.borrowme\server.js:17648:6)
    at trim_prefix (D:\ROLES\IIS\web.infodatek.borrowme\server.js:16901:14)
    at D:\ROLES\IIS\web.infodatek.borrowme\server.js:16868:8
    at Function.process_params (D:\ROLES\IIS\web.infodatek.borrowme\server.js:16919:13)
    at next (D:\ROLES\IIS\web.infodatek.borrowme\server.js:16859:11)
Error: Can't set headers after they are sent.
    at validateHeader (_http_outgoing.js:491:11)
    at ServerResponse.setHeader (_http_outgoing.js:498:3)
    at ServerResponse.header (D:\ROLES\IIS\web.infodatek.borrowme\server.js:22322:11)
    at ServerResponse.send (D:\ROLES\IIS\web.infodatek.borrowme\server.js:21721:13)
    at D:\ROLES\IIS\web.infodatek.borrowme\server.js:832:8
    at Layer.handle [as handle_request] (D:\ROLES\IIS\web.infodatek.borrowme\server.js:17648:6)
    at trim_prefix (D:\ROLES\IIS\web.infodatek.borrowme\server.js:16901:14)
    at D:\ROLES\IIS\web.infodatek.borrowme\server.js:16868:8
    at Function.process_params (D:\ROLES\IIS\web.infodatek.borrowme\server.js:16919:13)
    at next (D:\ROLES\IIS\web.infodatek.borrowme\server.js:16859:11)
Error: Can't set headers after they are sent.
    at validateHeader (_http_outgoing.js:491:11)
    at ServerResponse.setHeader (_http_outgoing.js:498:3)
    at ServerResponse.header (D:\ROLES\IIS\web.infodatek.borrowme\server.js:22322:11)
    at ServerResponse.send (D:\ROLES\IIS\web.infodatek.borrowme\server.js:21721:13)
    at D:\ROLES\IIS\web.infodatek.borrowme\server.js:832:8
    at Layer.handle [as handle_request] (D:\ROLES\IIS\web.infodatek.borrowme\server.js:17648:6)
    at trim_prefix (D:\ROLES\IIS\web.infodatek.borrowme\server.js:16901:14)
    at D:\ROLES\IIS\web.infodatek.borrowme\server.js:16868:8
    at Function.process_params (D:\ROLES\IIS\web.infodatek.borrowme\server.js:16919:13)
    at next (D:\ROLES\IIS\web.infodatek.borrowme\server.js:16859:11)
Error: Can't set headers after they are sent.
    at validateHeader (_http_outgoing.js:491:11)
    at ServerResponse.setHeader (_http_outgoing.js:498:3)
    at ServerResponse.header (D:\ROLES\IIS\web.infodatek.borrowme\server.js:22322:11)
    at ServerResponse.send (D:\ROLES\IIS\web.infodatek.borrowme\server.js:21721:13)
    at D:\ROLES\IIS\web.infodatek.borrowme\server.js:832:8
    at Layer.handle [as handle_request] (D:\ROLES\IIS\web.infodatek.borrowme\server.js:17648:6)
    at trim_prefix (D:\ROLES\IIS\web.infodatek.borrowme\server.js:16901:14)
    at D:\ROLES\IIS\web.infodatek.borrowme\server.js:16868:8
    at Function.process_params (D:\ROLES\IIS\web.infodatek.borrowme\server.js:16919:13)
    at next (D:\ROLES\IIS\web.infodatek.borrowme\server.js:16859:11)
Error: Can't set headers after they are sent.
    at validateHeader (_http_outgoing.js:491:11)
    at ServerResponse.setHeader (_http_outgoing.js:498:3)
    at ServerResponse.header (D:\ROLES\IIS\web.infodatek.borrowme\server.js:22322:11)
    at ServerResponse.send (D:\ROLES\IIS\web.infodatek.borrowme\server.js:21721:13)
    at D:\ROLES\IIS\web.infodatek.borrowme\server.js:832:8
    at Layer.handle [as handle_request] (D:\ROLES\IIS\web.infodatek.borrowme\server.js:17648:6)
    at trim_prefix (D:\ROLES\IIS\web.infodatek.borrowme\server.js:16901:14)
    at D:\ROLES\IIS\web.infodatek.borrowme\server.js:16868:8
    at Function.process_params (D:\ROLES\IIS\web.infodatek.borrowme\server.js:16919:13)
    at next (D:\ROLES\IIS\web.infodatek.borrowme\server.js:16859:11)
Error: Can't set headers after they are sent.
    at validateHeader (_http_outgoing.js:491:11)
    at ServerResponse.setHeader (_http_outgoing.js:498:3)
    at ServerResponse.header (D:\ROLES\IIS\web.infodatek.borrowme\server.js:22322:11)
    at ServerResponse.send (D:\ROLES\IIS\web.infodatek.borrowme\server.js:21721:13)
    at D:\ROLES\IIS\web.infodatek.borrowme\server.js:832:8
    at Layer.handle [as handle_request] (D:\ROLES\IIS\web.infodatek.borrowme\server.js:17648:6)
    at trim_prefix (D:\ROLES\IIS\web.infodatek.borrowme\server.js:16901:14)
    at D:\ROLES\IIS\web.infodatek.borrowme\server.js:16868:8
    at Function.process_params (D:\ROLES\IIS\web.infodatek.borrowme\server.js:16919:13)
    at next (D:\ROLES\IIS\web.infodatek.borrowme\server.js:16859:11)
Error: Can't set headers after they are sent.
    at validateHeader (_http_outgoing.js:491:11)
    at ServerResponse.setHeader (_http_outgoing.js:498:3)
    at ServerResponse.header (D:\ROLES\IIS\web.infodatek.borrowme\server.js:22322:11)
    at ServerResponse.send (D:\ROLES\IIS\web.infodatek.borrowme\server.js:21721:13)
    at D:\ROLES\IIS\web.infodatek.borrowme\server.js:832:8
    at Layer.handle [as handle_request] (D:\ROLES\IIS\web.infodatek.borrowme\server.js:17648:6)
    at trim_prefix (D:\ROLES\IIS\web.infodatek.borrowme\server.js:16901:14)
    at D:\ROLES\IIS\web.infodatek.borrowme\server.js:16868:8
    at Function.process_params (D:\ROLES\IIS\web.infodatek.borrowme\server.js:16919:13)
    at next (D:\ROLES\IIS\web.infodatek.borrowme\server.js:16859:11)
Error: Can't set headers after they are sent.
    at validateHeader (_http_outgoing.js:491:11)
    at ServerResponse.setHeader (_http_outgoing.js:498:3)
    at ServerResponse.header (D:\ROLES\IIS\web.infodatek.borrowme\server.js:22322:11)
    at ServerResponse.send (D:\ROLES\IIS\web.infodatek.borrowme\server.js:21721:13)
    at D:\ROLES\IIS\web.infodatek.borrowme\server.js:832:8
    at Layer.handle [as handle_request] (D:\ROLES\IIS\web.infodatek.borrowme\server.js:17648:6)
    at trim_prefix (D:\ROLES\IIS\web.infodatek.borrowme\server.js:16901:14)
    at D:\ROLES\IIS\web.infodatek.borrowme\server.js:16868:8
    at Function.process_params (D:\ROLES\IIS\web.infodatek.borrowme\server.js:16919:13)
    at next (D:\ROLES\IIS\web.infodatek.borrowme\server.js:16859:11)
Error: Can't set headers after they are sent.
    at validateHeader (_http_outgoing.js:491:11)
    at ServerResponse.setHeader (_http_outgoing.js:498:3)
    at ServerResponse.header (D:\ROLES\IIS\web.infodatek.borrowme\server.js:22322:11)
    at ServerResponse.send (D:\ROLES\IIS\web.infodatek.borrowme\server.js:21721:13)
    at D:\ROLES\IIS\web.infodatek.borrowme\server.js:832:8
    at Layer.handle [as handle_request] (D:\ROLES\IIS\web.infodatek.borrowme\server.js:17648:6)
    at trim_prefix (D:\ROLES\IIS\web.infodatek.borrowme\server.js:16901:14)
    at D:\ROLES\IIS\web.infodatek.borrowme\server.js:16868:8
    at Function.process_params (D:\ROLES\IIS\web.infodatek.borrowme\server.js:16919:13)
    at next (D:\ROLES\IIS\web.infodatek.borrowme\server.js:16859:11)
Error: Can't set headers after they are sent.
    at validateHeader (_http_outgoing.js:491:11)
    at ServerResponse.setHeader (_http_outgoing.js:498:3)
    at ServerResponse.header (D:\ROLES\IIS\web.infodatek.borrowme\server.js:22322:11)
    at ServerResponse.send (D:\ROLES\IIS\web.infodatek.borrowme\server.js:21721:13)
    at D:\ROLES\IIS\web.infodatek.borrowme\server.js:832:8
    at Layer.handle [as handle_request] (D:\ROLES\IIS\web.infodatek.borrowme\server.js:17648:6)
    at trim_prefix (D:\ROLES\IIS\web.infodatek.borrowme\server.js:16901:14)
    at D:\ROLES\IIS\web.infodatek.borrowme\server.js:16868:8
    at Function.process_params (D:\ROLES\IIS\web.infodatek.borrowme\server.js:16919:13)
    at next (D:\ROLES\IIS\web.infodatek.borrowme\server.js:16859:11)