iisnode encountered an error when processing the request.

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 last 64k of the output generated by the node.exe process to stderr is shown below:

(node:15432) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
ERROR ReferenceError: window is not defined
    at IntercomComponent2.ngAfterViewInit (D:\Octopus\Applications\Iver\Production\OJXFrontendSPA\24.11.14\dist\spa\en-GB\main.js:3:1301646)
    at callHookInternal (D:\Octopus\Applications\Iver\Production\OJXFrontendSPA\24.11.14\dist\spa\en-GB\main.js:3:53578)
    at callHook (D:\Octopus\Applications\Iver\Production\OJXFrontendSPA\24.11.14\dist\spa\en-GB\main.js:3:53938)
    at callHooks (D:\Octopus\Applications\Iver\Production\OJXFrontendSPA\24.11.14\dist\spa\en-GB\main.js:3:53328)
    at executeInitAndCheckHooks (D:\Octopus\Applications\Iver\Production\OJXFrontendSPA\24.11.14\dist\spa\en-GB\main.js:3:52660)
    at refreshView (D:\Octopus\Applications\Iver\Production\OJXFrontendSPA\24.11.14\dist\spa\en-GB\main.js:3:126911)
    at detectChangesInView$1 (D:\Octopus\Applications\Iver\Production\OJXFrontendSPA\24.11.14\dist\spa\en-GB\main.js:3:128475)
    at detectChangesInViewIfAttached (D:\Octopus\Applications\Iver\Production\OJXFrontendSPA\24.11.14\dist\spa\en-GB\main.js:3:128030)
    at detectChangesInEmbeddedViews (D:\Octopus\Applications\Iver\Production\OJXFrontendSPA\24.11.14\dist\spa\en-GB\main.js:3:127735)
    at refreshView (D:\Octopus\Applications\Iver\Production\OJXFrontendSPA\24.11.14\dist\spa\en-GB\main.js:3:125633)
Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client
    at new NodeError (node:internal/errors:393:5)
    at ServerResponse.setHeader (node:_http_outgoing:644:11)
    at res.set.res.header (D:\Octopus\Applications\Iver\Production\OJXFrontendSPA\24.11.14\dist\spa\en-GB\main.js:3:2185696)
    at res.send (D:\Octopus\Applications\Iver\Production\OJXFrontendSPA\24.11.14\dist\spa\en-GB\main.js:3:2180060)
    at D:\Octopus\Applications\Iver\Production\OJXFrontendSPA\24.11.14\dist\spa\en-GB\main.js:3:2078572
    at _ZoneDelegate.invoke (D:\Octopus\Applications\Iver\Production\OJXFrontendSPA\24.11.14\dist\spa\en-GB\main.js:3:2841714)
    at ZoneImpl2.run (D:\Octopus\Applications\Iver\Production\OJXFrontendSPA\24.11.14\dist\spa\en-GB\main.js:3:2834287)
    at D:\Octopus\Applications\Iver\Production\OJXFrontendSPA\24.11.14\dist\spa\en-GB\main.js:3:2852635
    at _ZoneDelegate.invokeTask (D:\Octopus\Applications\Iver\Production\OJXFrontendSPA\24.11.14\dist\spa\en-GB\main.js:3:2842556)
    at ZoneImpl2.runTask (D:\Octopus\Applications\Iver\Production\OJXFrontendSPA\24.11.14\dist\spa\en-GB\main.js:3:2835356)
ERROR ReferenceError: window is not defined
    at IntercomComponent2.ngAfterViewInit (D:\Octopus\Applications\Iver\Production\OJXFrontendSPA\24.11.14\dist\spa\en-GB\main.js:3:1301646)
    at callHookInternal (D:\Octopus\Applications\Iver\Production\OJXFrontendSPA\24.11.14\dist\spa\en-GB\main.js:3:53578)
    at callHook (D:\Octopus\Applications\Iver\Production\OJXFrontendSPA\24.11.14\dist\spa\en-GB\main.js:3:53938)
    at callHooks (D:\Octopus\Applications\Iver\Production\OJXFrontendSPA\24.11.14\dist\spa\en-GB\main.js:3:53328)
    at executeInitAndCheckHooks (D:\Octopus\Applications\Iver\Production\OJXFrontendSPA\24.11.14\dist\spa\en-GB\main.js:3:52660)
    at refreshView (D:\Octopus\Applications\Iver\Production\OJXFrontendSPA\24.11.14\dist\spa\en-GB\main.js:3:126911)
    at detectChangesInView$1 (D:\Octopus\Applications\Iver\Production\OJXFrontendSPA\24.11.14\dist\spa\en-GB\main.js:3:128475)
    at detectChangesInViewIfAttached (D:\Octopus\Applications\Iver\Production\OJXFrontendSPA\24.11.14\dist\spa\en-GB\main.js:3:128030)
    at detectChangesInEmbeddedViews (D:\Octopus\Applications\Iver\Production\OJXFrontendSPA\24.11.14\dist\spa\en-GB\main.js:3:127735)
    at refreshView (D:\Octopus\Applications\Iver\Production\OJXFrontendSPA\24.11.14\dist\spa\en-GB\main.js:3:125633)
ERROR ReferenceError: window is not defined
    at IntercomComponent2.ngAfterViewInit (D:\Octopus\Applications\Iver\Production\OJXFrontendSPA\24.11.14\dist\spa\en-GB\main.js:3:1301646)
    at callHookInternal (D:\Octopus\Applications\Iver\Production\OJXFrontendSPA\24.11.14\dist\spa\en-GB\main.js:3:53578)
    at callHook (D:\Octopus\Applications\Iver\Production\OJXFrontendSPA\24.11.14\dist\spa\en-GB\main.js:3:53938)
    at callHooks (D:\Octopus\Applications\Iver\Production\OJXFrontendSPA\24.11.14\dist\spa\en-GB\main.js:3:53328)
    at executeInitAndCheckHooks (D:\Octopus\Applications\Iver\Production\OJXFrontendSPA\24.11.14\dist\spa\en-GB\main.js:3:52660)
    at refreshView (D:\Octopus\Applications\Iver\Production\OJXFrontendSPA\24.11.14\dist\spa\en-GB\main.js:3:126911)
    at detectChangesInView$1 (D:\Octopus\Applications\Iver\Production\OJXFrontendSPA\24.11.14\dist\spa\en-GB\main.js:3:128475)
    at detectChangesInViewIfAttached (D:\Octopus\Applications\Iver\Production\OJXFrontendSPA\24.11.14\dist\spa\en-GB\main.js:3:128030)
    at detectChangesInEmbeddedViews (D:\Octopus\Applications\Iver\Production\OJXFrontendSPA\24.11.14\dist\spa\en-GB\main.js:3:127735)
    at refreshView (D:\Octopus\Applications\Iver\Production\OJXFrontendSPA\24.11.14\dist\spa\en-GB\main.js:3:125633)
ERROR ReferenceError: window is not defined
    at IntercomComponent2.ngAfterViewInit (D:\Octopus\Applications\Iver\Production\OJXFrontendSPA\24.11.14\dist\spa\en-GB\main.js:3:1301646)
    at callHookInternal (D:\Octopus\Applications\Iver\Production\OJXFrontendSPA\24.11.14\dist\spa\en-GB\main.js:3:53578)
    at callHook (D:\Octopus\Applications\Iver\Production\OJXFrontendSPA\24.11.14\dist\spa\en-GB\main.js:3:53938)
    at callHooks (D:\Octopus\Applications\Iver\Production\OJXFrontendSPA\24.11.14\dist\spa\en-GB\main.js:3:53328)
    at executeInitAndCheckHooks (D:\Octopus\Applications\Iver\Production\OJXFrontendSPA\24.11.14\dist\spa\en-GB\main.js:3:52660)
    at refreshView (D:\Octopus\Applications\Iver\Production\OJXFrontendSPA\24.11.14\dist\spa\en-GB\main.js:3:126911)
    at detectChangesInView$1 (D:\Octopus\Applications\Iver\Production\OJXFrontendSPA\24.11.14\dist\spa\en-GB\main.js:3:128475)
    at detectChangesInViewIfAttached (D:\Octopus\Applications\Iver\Production\OJXFrontendSPA\24.11.14\dist\spa\en-GB\main.js:3:128030)
    at detectChangesInEmbeddedViews (D:\Octopus\Applications\Iver\Production\OJXFrontendSPA\24.11.14\dist\spa\en-GB\main.js:3:127735)
    at refreshView (D:\Octopus\Applications\Iver\Production\OJXFrontendSPA\24.11.14\dist\spa\en-GB\main.js:3:125633)
ERROR ReferenceError: window is not defined
    at IntercomComponent2.ngAfterViewInit (D:\Octopus\Applications\Iver\Production\OJXFrontendSPA\24.11.14\dist\spa\en-GB\main.js:3:1301646)
    at callHookInternal (D:\Octopus\Applications\Iver\Production\OJXFrontendSPA\24.11.14\dist\spa\en-GB\main.js:3:53578)
    at callHook (D:\Octopus\Applications\Iver\Production\OJXFrontendSPA\24.11.14\dist\spa\en-GB\main.js:3:53938)
    at callHooks (D:\Octopus\Applications\Iver\Production\OJXFrontendSPA\24.11.14\dist\spa\en-GB\main.js:3:53328)
    at executeInitAndCheckHooks (D:\Octopus\Applications\Iver\Production\OJXFrontendSPA\24.11.14\dist\spa\en-GB\main.js:3:52660)
    at refreshView (D:\Octopus\Applications\Iver\Production\OJXFrontendSPA\24.11.14\dist\spa\en-GB\main.js:3:126911)
    at detectChangesInView$1 (D:\Octopus\Applications\Iver\Production\OJXFrontendSPA\24.11.14\dist\spa\en-GB\main.js:3:128475)
    at detectChangesInViewIfAttached (D:\Octopus\Applications\Iver\Production\OJXFrontendSPA\24.11.14\dist\spa\en-GB\main.js:3:128030)
    at detectChangesInEmbeddedViews (D:\Octopus\Applications\Iver\Production\OJXFrontendSPA\24.11.14\dist\spa\en-GB\main.js:3:127735)
    at refreshView (D:\Octopus\Applications\Iver\Production\OJXFrontendSPA\24.11.14\dist\spa\en-GB\main.js:3:125633)