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:

ERROR Error: Uncaught (in promise): ReferenceError: Image is not defined
ReferenceError: Image is not defined
    at D:\IUCProject\PatientPortal\InstantUCWeb\4927.js:1:240687
    at new ZoneAwarePromise (D:\IUCProject\PatientPortal\InstantUCWeb\main.js:1:1588181)
    at supportsAutomaticRotation (D:\IUCProject\PatientPortal\InstantUCWeb\4927.js:1:240655)
    at new LoadImageService (D:\IUCProject\PatientPortal\InstantUCWeb\4927.js:1:242981)
    at Object.LoadImageService_Factory [as factory] (D:\IUCProject\PatientPortal\InstantUCWeb\4927.js:1:247469)
    at R3Injector.hydrate (D:\IUCProject\PatientPortal\InstantUCWeb\main.js:1:1955166)
    at R3Injector.get (D:\IUCProject\PatientPortal\InstantUCWeb\main.js:1:1952312)
    at NgModuleRef.get (D:\IUCProject\PatientPortal\InstantUCWeb\main.js:1:2100812)
    at R3Injector.get (D:\IUCProject\PatientPortal\InstantUCWeb\main.js:1:1952522)
    at NgModuleRef.get (D:\IUCProject\PatientPortal\InstantUCWeb\main.js:1:2100812)
    at resolvePromise (D:\IUCProject\PatientPortal\InstantUCWeb\main.js:1:1585836)
    at new ZoneAwarePromise (D:\IUCProject\PatientPortal\InstantUCWeb\main.js:1:1588292)
    at supportsAutomaticRotation (D:\IUCProject\PatientPortal\InstantUCWeb\4927.js:1:240655)
    at new LoadImageService (D:\IUCProject\PatientPortal\InstantUCWeb\4927.js:1:242981)
    at Object.LoadImageService_Factory [as factory] (D:\IUCProject\PatientPortal\InstantUCWeb\4927.js:1:247469)
    at R3Injector.hydrate (D:\IUCProject\PatientPortal\InstantUCWeb\main.js:1:1955166)
    at R3Injector.get (D:\IUCProject\PatientPortal\InstantUCWeb\main.js:1:1952312)
    at NgModuleRef.get (D:\IUCProject\PatientPortal\InstantUCWeb\main.js:1:2100812)
    at R3Injector.get (D:\IUCProject\PatientPortal\InstantUCWeb\main.js:1:1952522)
    at NgModuleRef.get (D:\IUCProject\PatientPortal\InstantUCWeb\main.js:1:2100812) {
  rejection: ReferenceError: Image is not defined
      at D:\IUCProject\PatientPortal\InstantUCWeb\4927.js:1:240687
      at new ZoneAwarePromise (D:\IUCProject\PatientPortal\InstantUCWeb\main.js:1:1588181)
      at supportsAutomaticRotation (D:\IUCProject\PatientPortal\InstantUCWeb\4927.js:1:240655)
      at new LoadImageService (D:\IUCProject\PatientPortal\InstantUCWeb\4927.js:1:242981)
      at Object.LoadImageService_Factory [as factory] (D:\IUCProject\PatientPortal\InstantUCWeb\4927.js:1:247469)
      at R3Injector.hydrate (D:\IUCProject\PatientPortal\InstantUCWeb\main.js:1:1955166)
      at R3Injector.get (D:\IUCProject\PatientPortal\InstantUCWeb\main.js:1:1952312)
      at NgModuleRef.get (D:\IUCProject\PatientPortal\InstantUCWeb\main.js:1:2100812)
      at R3Injector.get (D:\IUCProject\PatientPortal\InstantUCWeb\main.js:1:1952522)
      at NgModuleRef.get (D:\IUCProject\PatientPortal\InstantUCWeb\main.js:1:2100812),
  promise: ZoneAwarePromise [Promise] {
    __zone_symbol__state: 0,
    __zone_symbol__value: ReferenceError: Image is not defined
        at D:\IUCProject\PatientPortal\InstantUCWeb\4927.js:1:240687
        at new ZoneAwarePromise (D:\IUCProject\PatientPortal\InstantUCWeb\main.js:1:1588181)
        at supportsAutomaticRotation (D:\IUCProject\PatientPortal\InstantUCWeb\4927.js:1:240655)
        at new LoadImageService (D:\IUCProject\PatientPortal\InstantUCWeb\4927.js:1:242981)
        at Object.LoadImageService_Factory [as factory] (D:\IUCProject\PatientPortal\InstantUCWeb\4927.js:1:247469)
        at R3Injector.hydrate (D:\IUCProject\PatientPortal\InstantUCWeb\main.js:1:1955166)
        at R3Injector.get (D:\IUCProject\PatientPortal\InstantUCWeb\main.js:1:1952312)
        at NgModuleRef.get (D:\IUCProject\PatientPortal\InstantUCWeb\main.js:1:2100812)
        at R3Injector.get (D:\IUCProject\PatientPortal\InstantUCWeb\main.js:1:1952522)
        at NgModuleRef.get (D:\IUCProject\PatientPortal\InstantUCWeb\main.js:1:2100812)
  },
  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: true,
      __zone_symbol__value: undefined
    },
    scheduleFn: undefined,
    cancelFn: undefined,
    callback: [Function (anonymous)],
    invoke: [Function (anonymous)]
  }
}