iisnode encountered an error when processing the request.

HRESULT: 0x2
HTTP status: 500
HTTP subStatus: 1002
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:10676) [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)
(node:10676) [DEP0066] DeprecationWarning: OutgoingMessage.prototype._headers is deprecated
Error in SSR, serving for direct CSR
EXCEPTION: Cannot read property 'replace' of undefined
ORIGINAL STACKTRACE:
TypeError: Cannot read property 'replace' of undefined
    at e.getThankYouNexiInfo (C:\inetpub\wwwroot\index.js:1:115480)
    at e.ngOnInit (C:\inetpub\wwwroot\index.js:1:1056542)
    at Wrapper_e.ngDoCheck (/e/e/wrapper.ngfactory.js:18:73)
    at proxyViewClass.View_e_Host0.detectChangesInternal (/e/e/host.ngfactory.js:28:15)
    at proxyViewClass.e.detectChanges (C:\inetpub\wwwroot\index.js:1:1261076)
    at e.detectChangesInNestedViews (C:\inetpub\wwwroot\index.js:1:1264143)
    at proxyViewClass.View_e0.detectChangesInternal (/e/e/component.ngfactory.js:80:14)
    at proxyViewClass.e.detectChanges (C:\inetpub\wwwroot\index.js:1:1261076)
    at proxyViewClass.e.internalDetectChanges (C:\inetpub\wwwroot\index.js:1:1260869)
    at proxyViewClass.View_e_Host0.detectChangesInternal (/e/e/host.ngfactory.js:27:19)
TypeError: Cannot read property 'replace' of undefined
    at e.getThankYouNexiInfo (C:\inetpub\wwwroot\index.js:1:115480)
    at e.ngOnInit (C:\inetpub\wwwroot\index.js:1:1056542)
    at Wrapper_e.ngDoCheck (/e/e/wrapper.ngfactory.js:18:73)
    at proxyViewClass.View_e_Host0.detectChangesInternal (/e/e/host.ngfactory.js:28:15)
    at proxyViewClass.e.detectChanges (C:\inetpub\wwwroot\index.js:1:1261076)
    at e.detectChangesInNestedViews (C:\inetpub\wwwroot\index.js:1:1264143)
    at proxyViewClass.View_e0.detectChangesInternal (/e/e/component.ngfactory.js:80:14)
    at proxyViewClass.e.detectChanges (C:\inetpub\wwwroot\index.js:1:1261076)
    at proxyViewClass.e.internalDetectChanges (C:\inetpub\wwwroot\index.js:1:1260869)
    at proxyViewClass.View_e_Host0.detectChangesInternal (/e/e/host.ngfactory.js:27:19)
Error in SSR, serving for direct CSR
Error in SSR, serving for direct CSR
Error: Can't set headers after they are sent.
    at SendStream.headersAlreadySent (C:\inetpub\wwwroot\node_modules\send\index.js:361:13)
    at SendStream.send (C:\inetpub\wwwroot\node_modules\send\index.js:572:10)
    at onstat (C:\inetpub\wwwroot\node_modules\send\index.js:677:10)
    at ZoneDelegate.invoke (C:\inetpub\wwwroot\node_modules\zone.js\dist\zone-node.js:232:26)
    at Object.onInvoke (C:\inetpub\wwwroot\index.js:1:436142)
    at ZoneDelegate.invoke (C:\inetpub\wwwroot\node_modules\zone.js\dist\zone-node.js:231:32)
    at Zone.runGuarded (C:\inetpub\wwwroot\node_modules\zone.js\dist\zone-node.js:128:47)
    at C:\inetpub\wwwroot\node_modules\zone.js\dist\zone-node.js:104:29
    at FSReqCallback.oncomplete (fs.js:193:5)
Error in SSR, serving for direct CSR
Error in SSR, serving for direct CSR
EXCEPTION: Cannot read property 'replace' of undefined
ORIGINAL STACKTRACE:
TypeError: Cannot read property 'replace' of undefined
    at e.getThankYouNexiInfo (C:\inetpub\wwwroot\index.js:1:115480)
    at e.ngOnInit (C:\inetpub\wwwroot\index.js:1:1056542)
    at Wrapper_e.ngDoCheck (/e/e/wrapper.ngfactory.js:18:73)
    at proxyViewClass.View_e_Host0.detectChangesInternal (/e/e/host.ngfactory.js:28:15)
    at proxyViewClass.e.detectChanges (C:\inetpub\wwwroot\index.js:1:1261076)
    at e.detectChangesInNestedViews (C:\inetpub\wwwroot\index.js:1:1264143)
    at proxyViewClass.View_e0.detectChangesInternal (/e/e/component.ngfactory.js:80:14)
    at proxyViewClass.e.detectChanges (C:\inetpub\wwwroot\index.js:1:1261076)
    at proxyViewClass.e.internalDetectChanges (C:\inetpub\wwwroot\index.js:1:1260869)
    at proxyViewClass.View_e_Host0.detectChangesInternal (/e/e/host.ngfactory.js:27:19)
TypeError: Cannot read property 'replace' of undefined
    at e.getThankYouNexiInfo (C:\inetpub\wwwroot\index.js:1:115480)
    at e.ngOnInit (C:\inetpub\wwwroot\index.js:1:1056542)
    at Wrapper_e.ngDoCheck (/e/e/wrapper.ngfactory.js:18:73)
    at proxyViewClass.View_e_Host0.detectChangesInternal (/e/e/host.ngfactory.js:28:15)
    at proxyViewClass.e.detectChanges (C:\inetpub\wwwroot\index.js:1:1261076)
    at e.detectChangesInNestedViews (C:\inetpub\wwwroot\index.js:1:1264143)
    at proxyViewClass.View_e0.detectChangesInternal (/e/e/component.ngfactory.js:80:14)
    at proxyViewClass.e.detectChanges (C:\inetpub\wwwroot\index.js:1:1261076)
    at proxyViewClass.e.internalDetectChanges (C:\inetpub\wwwroot\index.js:1:1260869)
    at proxyViewClass.View_e_Host0.detectChangesInternal (/e/e/host.ngfactory.js:27:19)
Error in SSR, serving for direct CSR
Error in SSR, serving for direct CSR
Error in SSR, serving for direct CSR
Error in SSR, serving for direct CSR
EXCEPTION: Cannot read property 'HasScripts' of null
ORIGINAL STACKTRACE:
TypeError: Cannot read property 'HasScripts' of null
    at e.setupExternalScripts (C:\inetpub\wwwroot\index.js:1:46077)
    at SafeSubscriber._next (C:\inetpub\wwwroot\index.js:1:939191)
    at SafeSubscriber.__tryOrUnsub (C:\inetpub\wwwroot\node_modules\rxjs\Subscriber.js:223:16)
    at SafeSubscriber.next (C:\inetpub\wwwroot\node_modules\rxjs\Subscriber.js:172:22)
    at Subscriber._next (C:\inetpub\wwwroot\node_modules\rxjs\Subscriber.js:125:26)
    at Subscriber.next (C:\inetpub\wwwroot\node_modules\rxjs\Subscriber.js:89:18)
    at CatchSubscriber.Subscriber._next (C:\inetpub\wwwroot\node_modules\rxjs\Subscriber.js:125:26)
    at CatchSubscriber.Subscriber.next (C:\inetpub\wwwroot\node_modules\rxjs\Subscriber.js:89:18)
    at DoSubscriber._next (C:\inetpub\wwwroot\node_modules\rxjs\operator\do.js:88:30)
    at DoSubscriber.Subscriber.next (C:\inetpub\wwwroot\node_modules\rxjs\Subscriber.js:89:18)
Application has thrown an uncaught exception and is terminated:
TypeError: Cannot read property 'HasScripts' of null
    at e.setupExternalScripts (C:\inetpub\wwwroot\index.js:1:46077)
    at SafeSubscriber._next (C:\inetpub\wwwroot\index.js:1:939191)
    at SafeSubscriber.__tryOrUnsub (C:\inetpub\wwwroot\node_modules\rxjs\Subscriber.js:223:16)
    at SafeSubscriber.next (C:\inetpub\wwwroot\node_modules\rxjs\Subscriber.js:172:22)
    at Subscriber._next (C:\inetpub\wwwroot\node_modules\rxjs\Subscriber.js:125:26)
    at Subscriber.next (C:\inetpub\wwwroot\node_modules\rxjs\Subscriber.js:89:18)
    at CatchSubscriber.Subscriber._next (C:\inetpub\wwwroot\node_modules\rxjs\Subscriber.js:125:26)
    at CatchSubscriber.Subscriber.next (C:\inetpub\wwwroot\node_modules\rxjs\Subscriber.js:89:18)
    at DoSubscriber._next (C:\inetpub\wwwroot\node_modules\rxjs\operator\do.js:88:30)
    at DoSubscriber.Subscriber.next (C:\inetpub\wwwroot\node_modules\rxjs\Subscriber.js:89:18)