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:16800) [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 Error: Uncaught (in promise): ReferenceError: document is not defined
ReferenceError: document is not defined
    at new ScriptService (D:\inetpub\mg.by2\vendors~authentication-authentication-module~contacts-contacts-module~delivery-delivery-module~partn~323aa222.js:1:23253)
    at Object.ScriptService_Factory [as factory] (D:\inetpub\mg.by2\vendors~authentication-authentication-module~contacts-contacts-module~delivery-delivery-module~partn~323aa222.js:1:25125)
    at R3Injector.hydrate (D:\inetpub\mg.by2\main.js:1:584388)
    at R3Injector.get (D:\inetpub\mg.by2\main.js:1:581355)
    at NgModuleRef$1.get (D:\inetpub\mg.by2\main.js:1:762889)
    at R3Injector.get (D:\inetpub\mg.by2\main.js:1:581565)
    at NgModuleRef$1.get (D:\inetpub\mg.by2\main.js:1:762889)
    at Object.get (D:\inetpub\mg.by2\main.js:1:758143)
    at lookupTokenUsingModuleInjector (D:\inetpub\mg.by2\main.js:1:491532)
    at getOrCreateInjectable (D:\inetpub\mg.by2\main.js:1:493592)
    at resolvePromise (D:\inetpub\mg.by2\main.js:1:2687457)
    at resolvePromise (D:\inetpub\mg.by2\main.js:1:2686398)
    at D:\inetpub\mg.by2\main.js:1:2689048
    at ZoneDelegate.invokeTask (D:\inetpub\mg.by2\main.js:1:2678076)
    at Object.onInvokeTask (D:\inetpub\mg.by2\main.js:1:812222)
    at ZoneDelegate.invokeTask (D:\inetpub\mg.by2\main.js:1:2677966)
    at Zone.runTask (D:\inetpub\mg.by2\main.js:1:2670641)
    at drainMicroTaskQueue (D:\inetpub\mg.by2\main.js:1:2681684)
    at ZoneTask.invokeTask (D:\inetpub\mg.by2\main.js:1:2679725)
    at ZoneTask.options.useG.invoke (D:\inetpub\mg.by2\main.js:1:2679490) {
  rejection: ReferenceError: document is not defined
      at new ScriptService (D:\inetpub\mg.by2\vendors~authentication-authentication-module~contacts-contacts-module~delivery-delivery-module~partn~323aa222.js:1:23253)
      at Object.ScriptService_Factory [as factory] (D:\inetpub\mg.by2\vendors~authentication-authentication-module~contacts-contacts-module~delivery-delivery-module~partn~323aa222.js:1:25125)
      at R3Injector.hydrate (D:\inetpub\mg.by2\main.js:1:584388)
      at R3Injector.get (D:\inetpub\mg.by2\main.js:1:581355)
      at NgModuleRef$1.get (D:\inetpub\mg.by2\main.js:1:762889)
      at R3Injector.get (D:\inetpub\mg.by2\main.js:1:581565)
      at NgModuleRef$1.get (D:\inetpub\mg.by2\main.js:1:762889)
      at Object.get (D:\inetpub\mg.by2\main.js:1:758143)
      at lookupTokenUsingModuleInjector (D:\inetpub\mg.by2\main.js:1:491532)
      at getOrCreateInjectable (D:\inetpub\mg.by2\main.js:1:493592),
  promise: ZoneAwarePromise [Promise] {
    __zone_symbol__state: 0,
    __zone_symbol__value: ReferenceError: document is not defined
        at new ScriptService (D:\inetpub\mg.by2\vendors~authentication-authentication-module~contacts-contacts-module~delivery-delivery-module~partn~323aa222.js:1:23253)
        at Object.ScriptService_Factory [as factory] (D:\inetpub\mg.by2\vendors~authentication-authentication-module~contacts-contacts-module~delivery-delivery-module~partn~323aa222.js:1:25125)
        at R3Injector.hydrate (D:\inetpub\mg.by2\main.js:1:584388)
        at R3Injector.get (D:\inetpub\mg.by2\main.js:1:581355)
        at NgModuleRef$1.get (D:\inetpub\mg.by2\main.js:1:762889)
        at R3Injector.get (D:\inetpub\mg.by2\main.js:1:581565)
        at NgModuleRef$1.get (D:\inetpub\mg.by2\main.js:1:762889)
        at Object.get (D:\inetpub\mg.by2\main.js:1:758143)
        at lookupTokenUsingModuleInjector (D:\inetpub\mg.by2\main.js:1:491532)
        at getOrCreateInjectable (D:\inetpub\mg.by2\main.js:1:493592)
  },
  zone: <ref *1> Zone {
    _parent: Zone {
      _parent: null,
      _name: '<root>',
      _properties: {},
      _zoneDelegate: [ZoneDelegate]
    },
    _name: 'angular',
    _properties: { isAngularZone: true },
    _zoneDelegate: <ref *2> ZoneDelegate {
      _taskCounts: [Object],
      zone: [Circular *1],
      _parentDelegate: [ZoneDelegate],
      _forkZS: null,
      _forkDlgt: null,
      _forkCurrZone: null,
      _interceptZS: null,
      _interceptDlgt: null,
      _interceptCurrZone: null,
      _invokeZS: [Object],
      _invokeDlgt: [ZoneDelegate],
      _invokeCurrZone: [Circular *1],
      _handleErrorZS: [Object],
      _handleErrorDlgt: [ZoneDelegate],
      _handleErrorCurrZone: [Circular *1],
      _scheduleTaskZS: [Object],
      _scheduleTaskDlgt: [ZoneDelegate],
      _scheduleTaskCurrZone: [Circular *1],
      _invokeTaskZS: [Object],
      _invokeTaskDlgt: [ZoneDelegate],
      _invokeTaskCurrZone: [Circular *1],
      _cancelTaskZS: [Object],
      _cancelTaskDlgt: [ZoneDelegate],
      _cancelTaskCurrZone: [Circular *1],
      _hasTaskZS: [Object],
      _hasTaskDlgt: [ZoneDelegate],
      _hasTaskDlgtOwner: [Circular *2],
      _hasTaskCurrZone: [Circular *1]
    }
  },
  task: ZoneTask {
    _zone: <ref *1> Zone {
      _parent: [Zone],
      _name: 'angular',
      _properties: [Object],
      _zoneDelegate: [ZoneDelegate]
    },
    runCount: 0,
    _zoneDelegates: null,
    _state: 'notScheduled',
    type: 'microTask',
    source: 'Promise.then',
    data: ZoneAwarePromise [Promise] {
      __zone_symbol__state: 0,
      __zone_symbol__value: ReferenceError: document is not defined
          at new ScriptService (D:\inetpub\mg.by2\vendors~authentication-authentication-module~contacts-contacts-module~delivery-delivery-module~partn~323aa222.js:1:23253)
          at Object.ScriptService_Factory [as factory] (D:\inetpub\mg.by2\vendors~authentication-authentication-module~contacts-contacts-module~delivery-delivery-module~partn~323aa222.js:1:25125)
          at R3Injector.hydrate (D:\inetpub\mg.by2\main.js:1:584388)
          at R3Injector.get (D:\inetpub\mg.by2\main.js:1:581355)
          at NgModuleRef$1.get (D:\inetpub\mg.by2\main.js:1:762889)
          at R3Injector.get (D:\inetpub\mg.by2\main.js:1:581565)
          at NgModuleRef$1.get (D:\inetpub\mg.by2\main.js:1:762889)
          at Object.get (D:\inetpub\mg.by2\main.js:1:758143)
          at lookupTokenUsingModuleInjector (D:\inetpub\mg.by2\main.js:1:491532)
          at getOrCreateInjectable (D:\inetpub\mg.by2\main.js:1:493592)
    },
    scheduleFn: undefined,
    cancelFn: undefined,
    callback: [Function (anonymous)],
    invoke: [Function (anonymous)]
  }
}
ERROR TypeError: Cannot read property 'toString' of null
    at DateRangeComponent.ngOnInit (D:\inetpub\mg.by2\catalog-analog-catalog-analog-module.js:1:15354)
    at callHook (D:\inetpub\mg.by2\main.js:1:486385)
    at callHooks (D:\inetpub\mg.by2\main.js:1:486008)
    at executeInitAndCheckHooks (D:\inetpub\mg.by2\main.js:1:485349)
    at selectIndexInternal (D:\inetpub\mg.by2\main.js:1:554413)
    at Object.ɵɵadvance (D:\inetpub\mg.by2\main.js:1:554015)
    at EnginesComponent_tr_30_Template (D:\inetpub\mg.by2\catalog-analog-catalog-analog-module.js:1:16982)
    at executeTemplate (D:\inetpub\mg.by2\main.js:1:562601)
    at refreshView (D:\inetpub\mg.by2\main.js:1:558965)
    at refreshEmbeddedViews (D:\inetpub\mg.by2\main.js:1:560103)
ERROR TypeError: Cannot read property 'toString' of null
    at DateRangeComponent.ngOnInit (D:\inetpub\mg.by2\catalog-analog-catalog-analog-module.js:1:15354)
    at callHook (D:\inetpub\mg.by2\main.js:1:486385)
    at callHooks (D:\inetpub\mg.by2\main.js:1:486008)
    at executeInitAndCheckHooks (D:\inetpub\mg.by2\main.js:1:485349)
    at selectIndexInternal (D:\inetpub\mg.by2\main.js:1:554413)
    at Object.ɵɵadvance (D:\inetpub\mg.by2\main.js:1:554015)
    at EnginesComponent_tr_30_Template (D:\inetpub\mg.by2\catalog-analog-catalog-analog-module.js:1:16982)
    at executeTemplate (D:\inetpub\mg.by2\main.js:1:562601)
    at refreshView (D:\inetpub\mg.by2\main.js:1:558965)
    at refreshEmbeddedViews (D:\inetpub\mg.by2\main.js:1:560103)
ERROR TypeError: Cannot read property 'toString' of null
    at DateRangeComponent.ngOnInit (D:\inetpub\mg.by2\catalog-analog-catalog-analog-module.js:1:15354)
    at callHook (D:\inetpub\mg.by2\main.js:1:486385)
    at callHooks (D:\inetpub\mg.by2\main.js:1:486008)
    at executeInitAndCheckHooks (D:\inetpub\mg.by2\main.js:1:485349)
    at selectIndexInternal (D:\inetpub\mg.by2\main.js:1:554413)
    at Object.ɵɵadvance (D:\inetpub\mg.by2\main.js:1:554015)
    at EnginesComponent_tr_30_Template (D:\inetpub\mg.by2\catalog-analog-catalog-analog-module.js:1:16982)
    at executeTemplate (D:\inetpub\mg.by2\main.js:1:562601)
    at refreshView (D:\inetpub\mg.by2\main.js:1:558965)
    at refreshEmbeddedViews (D:\inetpub\mg.by2\main.js:1:560103)
ERROR TypeError: Cannot read property 'toString' of null
    at DateRangeComponent.ngOnInit (D:\inetpub\mg.by2\catalog-analog-catalog-analog-module.js:1:15354)
    at callHook (D:\inetpub\mg.by2\main.js:1:486385)
    at callHooks (D:\inetpub\mg.by2\main.js:1:486008)
    at executeInitAndCheckHooks (D:\inetpub\mg.by2\main.js:1:485349)
    at selectIndexInternal (D:\inetpub\mg.by2\main.js:1:554413)
    at Object.ɵɵadvance (D:\inetpub\mg.by2\main.js:1:554015)
    at EnginesComponent_tr_30_Template (D:\inetpub\mg.by2\catalog-analog-catalog-analog-module.js:1:16982)
    at executeTemplate (D:\inetpub\mg.by2\main.js:1:562601)
    at refreshView (D:\inetpub\mg.by2\main.js:1:558965)
    at refreshEmbeddedViews (D:\inetpub\mg.by2\main.js:1:560103)
ERROR TypeError: Cannot read property 'toString' of null
    at DateRangeComponent.ngOnInit (D:\inetpub\mg.by2\catalog-analog-catalog-analog-module.js:1:15354)
    at callHook (D:\inetpub\mg.by2\main.js:1:486385)
    at callHooks (D:\inetpub\mg.by2\main.js:1:486008)
    at executeInitAndCheckHooks (D:\inetpub\mg.by2\main.js:1:485349)
    at selectIndexInternal (D:\inetpub\mg.by2\main.js:1:554413)
    at Object.ɵɵadvance (D:\inetpub\mg.by2\main.js:1:554015)
    at EnginesComponent_tr_30_Template (D:\inetpub\mg.by2\catalog-analog-catalog-analog-module.js:1:16982)
    at executeTemplate (D:\inetpub\mg.by2\main.js:1:562601)
    at refreshView (D:\inetpub\mg.by2\main.js:1:558965)
    at refreshEmbeddedViews (D:\inetpub\mg.by2\main.js:1:560103)
ERROR TypeError: Cannot read property 'toString' of null
    at DateRangeComponent.ngOnInit (D:\inetpub\mg.by2\catalog-analog-catalog-analog-module.js:1:15354)
    at callHook (D:\inetpub\mg.by2\main.js:1:486385)
    at callHooks (D:\inetpub\mg.by2\main.js:1:486008)
    at executeInitAndCheckHooks (D:\inetpub\mg.by2\main.js:1:485349)
    at selectIndexInternal (D:\inetpub\mg.by2\main.js:1:554413)
    at Object.ɵɵadvance (D:\inetpub\mg.by2\main.js:1:554015)
    at EnginesComponent_tr_30_Template (D:\inetpub\mg.by2\catalog-analog-catalog-analog-module.js:1:16982)
    at executeTemplate (D:\inetpub\mg.by2\main.js:1:562601)
    at refreshView (D:\inetpub\mg.by2\main.js:1:558965)
    at refreshEmbeddedViews (D:\inetpub\mg.by2\main.js:1:560103)
ERROR TypeError: Cannot read property 'toString' of null
    at DateRangeComponent.ngOnInit (D:\inetpub\mg.by2\catalog-analog-catalog-analog-module.js:1:15354)
    at callHook (D:\inetpub\mg.by2\main.js:1:486385)
    at callHooks (D:\inetpub\mg.by2\main.js:1:486008)
    at executeInitAndCheckHooks (D:\inetpub\mg.by2\main.js:1:485349)
    at selectIndexInternal (D:\inetpub\mg.by2\main.js:1:554413)
    at Object.ɵɵadvance (D:\inetpub\mg.by2\main.js:1:554015)
    at EnginesComponent_tr_30_Template (D:\inetpub\mg.by2\catalog-analog-catalog-analog-module.js:1:16982)
    at executeTemplate (D:\inetpub\mg.by2\main.js:1:562601)
    at refreshView (D:\inetpub\mg.by2\main.js:1:558965)
    at refreshEmbeddedViews (D:\inetpub\mg.by2\main.js:1:560103)