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:2512) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
ERROR ReferenceError: ga is not defined
    at ProductSearchComponent../src/app/shared/search/product-search/product-search.component.ts.ProductSearchComponent.customGTMFailureEvent (D:\Applications\ProductLookUp\UI\server.js:154267:9)
    at SafeSubscriber._next (D:\Applications\ProductLookUp\UI\server.js:154245:27)
    at SafeSubscriber.__tryOrUnsub (D:\Applications\ProductLookUp\UI\server.js:28290:16)
    at SafeSubscriber.next (D:\Applications\ProductLookUp\UI\server.js:28228:22)
    at Subscriber._next (D:\Applications\ProductLookUp\UI\server.js:28171:26)
    at Subscriber.next (D:\Applications\ProductLookUp\UI\server.js:28148:18)
    at MapSubscriber._next (D:\Applications\ProductLookUp\UI\server.js:30979:26)
    at MapSubscriber.Subscriber.next (D:\Applications\ProductLookUp\UI\server.js:28148:18)
    at FilterSubscriber._next (D:\Applications\ProductLookUp\UI\server.js:35079:30)
    at FilterSubscriber.Subscriber.next (D:\Applications\ProductLookUp\UI\server.js:28148:18)
ERROR TypeError: Cannot read property 'Dealer_Name' of undefined
    at StoreLocatorListComponent../src/app/shared/location/store-locator-list/store-locator-list.component.ts.StoreLocatorListComponent.ngOnInit (D:\Applications\ProductLookUp\UI\server.js:153236:42)
    at checkAndUpdateDirectiveInline (D:\Applications\ProductLookUp\UI\server.js:25085:19)
    at checkAndUpdateNodeInline (D:\Applications\ProductLookUp\UI\server.js:26349:20)
    at checkAndUpdateNode (D:\Applications\ProductLookUp\UI\server.js:26311:16)
    at prodCheckAndUpdateNode (D:\Applications\ProductLookUp\UI\server.js:26852:5)
    at Object.updateDirectives (D:\Applications\ProductLookUp\UI\server.js:153468:1017)
    at Object.updateDirectives (D:\Applications\ProductLookUp\UI\server.js:26640:72)
    at checkAndUpdateView (D:\Applications\ProductLookUp\UI\server.js:26293:14)
    at callViewAction (D:\Applications\ProductLookUp\UI\server.js:26534:21)
    at execEmbeddedViewsAction (D:\Applications\ProductLookUp\UI\server.js:26497:17)
ERROR ReferenceError: ga is not defined
    at ProductSearchComponent../src/app/shared/search/product-search/product-search.component.ts.ProductSearchComponent.customGTMFailureEvent (D:\Applications\ProductLookUp\UI\server.js:154267:9)
    at SafeSubscriber._next (D:\Applications\ProductLookUp\UI\server.js:154245:27)
    at SafeSubscriber.__tryOrUnsub (D:\Applications\ProductLookUp\UI\server.js:28290:16)
    at SafeSubscriber.next (D:\Applications\ProductLookUp\UI\server.js:28228:22)
    at Subscriber._next (D:\Applications\ProductLookUp\UI\server.js:28171:26)
    at Subscriber.next (D:\Applications\ProductLookUp\UI\server.js:28148:18)
    at MapSubscriber._next (D:\Applications\ProductLookUp\UI\server.js:30979:26)
    at MapSubscriber.Subscriber.next (D:\Applications\ProductLookUp\UI\server.js:28148:18)
    at FilterSubscriber._next (D:\Applications\ProductLookUp\UI\server.js:35079:30)
    at FilterSubscriber.Subscriber.next (D:\Applications\ProductLookUp\UI\server.js:28148:18)
ERROR TypeError: Cannot read property 'Dealer_Name' of undefined
    at StoreLocatorListComponent../src/app/shared/location/store-locator-list/store-locator-list.component.ts.StoreLocatorListComponent.ngOnInit (D:\Applications\ProductLookUp\UI\server.js:153236:42)
    at checkAndUpdateDirectiveInline (D:\Applications\ProductLookUp\UI\server.js:25085:19)
    at checkAndUpdateNodeInline (D:\Applications\ProductLookUp\UI\server.js:26349:20)
    at checkAndUpdateNode (D:\Applications\ProductLookUp\UI\server.js:26311:16)
    at prodCheckAndUpdateNode (D:\Applications\ProductLookUp\UI\server.js:26852:5)
    at Object.updateDirectives (D:\Applications\ProductLookUp\UI\server.js:153468:1017)
    at Object.updateDirectives (D:\Applications\ProductLookUp\UI\server.js:26640:72)
    at checkAndUpdateView (D:\Applications\ProductLookUp\UI\server.js:26293:14)
    at callViewAction (D:\Applications\ProductLookUp\UI\server.js:26534:21)
    at execEmbeddedViewsAction (D:\Applications\ProductLookUp\UI\server.js:26497:17)
ERROR ReferenceError: document is not defined
    at AppComponent../src/app/app.component.ts.AppComponent.onDeactivate (D:\Applications\ProductLookUp\UI\server.js:137430:9)
    at Object.handleEvent (D:\Applications\ProductLookUp\UI\server.js:137335:25)
    at Object.handleEvent (D:\Applications\ProductLookUp\UI\server.js:26093:41)
    at Object.handleEvent (D:\Applications\ProductLookUp\UI\server.js:26638:29)
    at dispatchEvent (D:\Applications\ProductLookUp\UI\server.js:23542:25)
    at D:\Applications\ProductLookUp\UI\server.js:25032:38
    at SafeSubscriber.schedulerFn [as _next] (D:\Applications\ProductLookUp\UI\server.js:16513:36)
    at SafeSubscriber.__tryOrUnsub (D:\Applications\ProductLookUp\UI\server.js:28290:16)
    at SafeSubscriber.next (D:\Applications\ProductLookUp\UI\server.js:28228:22)
    at Subscriber._next (D:\Applications\ProductLookUp\UI\server.js:28171:26)
ERROR ReferenceError: document is not defined
    at AppComponent../src/app/app.component.ts.AppComponent.onDeactivate (D:\Applications\ProductLookUp\UI\server.js:137430:9)
    at Object.handleEvent (D:\Applications\ProductLookUp\UI\server.js:137335:25)
    at Object.handleEvent (D:\Applications\ProductLookUp\UI\server.js:26093:41)
    at Object.handleEvent (D:\Applications\ProductLookUp\UI\server.js:26638:29)
    at dispatchEvent (D:\Applications\ProductLookUp\UI\server.js:23542:25)
    at D:\Applications\ProductLookUp\UI\server.js:25032:38
    at SafeSubscriber.schedulerFn [as _next] (D:\Applications\ProductLookUp\UI\server.js:16513:36)
    at SafeSubscriber.__tryOrUnsub (D:\Applications\ProductLookUp\UI\server.js:28290:16)
    at SafeSubscriber.next (D:\Applications\ProductLookUp\UI\server.js:28228:22)
    at Subscriber._next (D:\Applications\ProductLookUp\UI\server.js:28171:26)
ERROR ReferenceError: ga is not defined
    at ProductSearchComponent../src/app/shared/search/product-search/product-search.component.ts.ProductSearchComponent.customGTMFailureEvent (D:\Applications\ProductLookUp\UI\server.js:154267:9)
    at SafeSubscriber._next (D:\Applications\ProductLookUp\UI\server.js:154245:27)
    at SafeSubscriber.__tryOrUnsub (D:\Applications\ProductLookUp\UI\server.js:28290:16)
    at SafeSubscriber.next (D:\Applications\ProductLookUp\UI\server.js:28228:22)
    at Subscriber._next (D:\Applications\ProductLookUp\UI\server.js:28171:26)
    at Subscriber.next (D:\Applications\ProductLookUp\UI\server.js:28148:18)
    at MapSubscriber._next (D:\Applications\ProductLookUp\UI\server.js:30979:26)
    at MapSubscriber.Subscriber.next (D:\Applications\ProductLookUp\UI\server.js:28148:18)
    at FilterSubscriber._next (D:\Applications\ProductLookUp\UI\server.js:35079:30)
    at FilterSubscriber.Subscriber.next (D:\Applications\ProductLookUp\UI\server.js:28148:18)
ERROR ReferenceError: ga is not defined
    at ProductSearchComponent../src/app/shared/search/product-search/product-search.component.ts.ProductSearchComponent.customGTMFailureEvent (D:\Applications\ProductLookUp\UI\server.js:154267:9)
    at SafeSubscriber._next (D:\Applications\ProductLookUp\UI\server.js:154245:27)
    at SafeSubscriber.__tryOrUnsub (D:\Applications\ProductLookUp\UI\server.js:28290:16)
    at SafeSubscriber.next (D:\Applications\ProductLookUp\UI\server.js:28228:22)
    at Subscriber._next (D:\Applications\ProductLookUp\UI\server.js:28171:26)
    at Subscriber.next (D:\Applications\ProductLookUp\UI\server.js:28148:18)
    at MapSubscriber._next (D:\Applications\ProductLookUp\UI\server.js:30979:26)
    at MapSubscriber.Subscriber.next (D:\Applications\ProductLookUp\UI\server.js:28148:18)
    at FilterSubscriber._next (D:\Applications\ProductLookUp\UI\server.js:35079:30)
    at FilterSubscriber.Subscriber.next (D:\Applications\ProductLookUp\UI\server.js:28148:18)
ERROR ReferenceError: ga is not defined
    at ProductSearchComponent../src/app/shared/search/product-search/product-search.component.ts.ProductSearchComponent.customGTMFailureEvent (D:\Applications\ProductLookUp\UI\server.js:154267:9)
    at SafeSubscriber._next (D:\Applications\ProductLookUp\UI\server.js:154245:27)
    at SafeSubscriber.__tryOrUnsub (D:\Applications\ProductLookUp\UI\server.js:28290:16)
    at SafeSubscriber.next (D:\Applications\ProductLookUp\UI\server.js:28228:22)
    at Subscriber._next (D:\Applications\ProductLookUp\UI\server.js:28171:26)
    at Subscriber.next (D:\Applications\ProductLookUp\UI\server.js:28148:18)
    at MapSubscriber._next (D:\Applications\ProductLookUp\UI\server.js:30979:26)
    at MapSubscriber.Subscriber.next (D:\Applications\ProductLookUp\UI\server.js:28148:18)
    at FilterSubscriber._next (D:\Applications\ProductLookUp\UI\server.js:35079:30)
    at FilterSubscriber.Subscriber.next (D:\Applications\ProductLookUp\UI\server.js:28148:18)
ERROR ReferenceError: ga is not defined
    at ProductSearchComponent../src/app/shared/search/product-search/product-search.component.ts.ProductSearchComponent.customGTMFailureEvent (D:\Applications\ProductLookUp\UI\server.js:154267:9)
    at SafeSubscriber._next (D:\Applications\ProductLookUp\UI\server.js:154245:27)
    at SafeSubscriber.__tryOrUnsub (D:\Applications\ProductLookUp\UI\server.js:28290:16)
    at SafeSubscriber.next (D:\Applications\ProductLookUp\UI\server.js:28228:22)
    at Subscriber._next (D:\Applications\ProductLookUp\UI\server.js:28171:26)
    at Subscriber.next (D:\Applications\ProductLookUp\UI\server.js:28148:18)
    at MapSubscriber._next (D:\Applications\ProductLookUp\UI\server.js:30979:26)
    at MapSubscriber.Subscriber.next (D:\Applications\ProductLookUp\UI\server.js:28148:18)
    at FilterSubscriber._next (D:\Applications\ProductLookUp\UI\server.js:35079:30)
    at FilterSubscriber.Subscriber.next (D:\Applications\ProductLookUp\UI\server.js:28148:18)
ERROR ReferenceError: ga is not defined
    at ProductSearchComponent../src/app/shared/search/product-search/product-search.component.ts.ProductSearchComponent.customGTMFailureEvent (D:\Applications\ProductLookUp\UI\server.js:154267:9)
    at SafeSubscriber._next (D:\Applications\ProductLookUp\UI\server.js:154245:27)
    at SafeSubscriber.__tryOrUnsub (D:\Applications\ProductLookUp\UI\server.js:28290:16)
    at SafeSubscriber.next (D:\Applications\ProductLookUp\UI\server.js:28228:22)
    at Subscriber._next (D:\Applications\ProductLookUp\UI\server.js:28171:26)
    at Subscriber.next (D:\Applications\ProductLookUp\UI\server.js:28148:18)
    at MapSubscriber._next (D:\Applications\ProductLookUp\UI\server.js:30979:26)
    at MapSubscriber.Subscriber.next (D:\Applications\ProductLookUp\UI\server.js:28148:18)
    at FilterSubscriber._next (D:\Applications\ProductLookUp\UI\server.js:35079:30)
    at FilterSubscriber.Subscriber.next (D:\Applications\ProductLookUp\UI\server.js:28148:18)
ERROR ReferenceError: document is not defined
    at AppComponent../src/app/app.component.ts.AppComponent.onDeactivate (D:\Applications\ProductLookUp\UI\server.js:137430:9)
    at Object.handleEvent (D:\Applications\ProductLookUp\UI\server.js:137335:25)
    at Object.handleEvent (D:\Applications\ProductLookUp\UI\server.js:26093:41)
    at Object.handleEvent (D:\Applications\ProductLookUp\UI\server.js:26638:29)
    at dispatchEvent (D:\Applications\ProductLookUp\UI\server.js:23542:25)
    at D:\Applications\ProductLookUp\UI\server.js:25032:38
    at SafeSubscriber.schedulerFn [as _next] (D:\Applications\ProductLookUp\UI\server.js:16513:36)
    at SafeSubscriber.__tryOrUnsub (D:\Applications\ProductLookUp\UI\server.js:28290:16)
    at SafeSubscriber.next (D:\Applications\ProductLookUp\UI\server.js:28228:22)
    at Subscriber._next (D:\Applications\ProductLookUp\UI\server.js:28171:26)
ERROR HttpErrorResponse {
  headers: HttpHeaders {
    normalizedNames: Map {},
    lazyUpdate: null,
    lazyInit: [Function]
  },
  status: 500,
  statusText: 'Internal Server Error',
  url: 'http://products.interstatebatteries.com/ProductLookupService/api/productlookup/Categories',
  ok: false,
  name: 'HttpErrorResponse',
  message: 'Http failure response for http://products.interstatebatteries.com/ProductLookupService/api/productlookup/Categories: 500 Internal Server Error',
  error: {
    Message: 'An error has occurred.',
    ExceptionMessage: 'The underlying provider failed on Open.',
    ExceptionType: 'System.Data.Entity.Core.EntityException',
    StackTrace: '   at System.Data.Entity.Core.EntityClient.EntityConnection.Open()\r\n' +
      '   at System.Data.Entity.Core.Objects.ObjectContext.EnsureConnection(Boolean shouldMonitorTransactions)\r\n' +
      '   at System.Data.Entity.Core.Objects.ObjectContext.ExecuteInTransaction[T](Func`1 func, IDbExecutionStrategy executionStrategy, Boolean startLocalTransaction, Boolean releaseConnectionOnSuccess)\r\n' +
      '   at System.Data.Entity.Core.Objects.ObjectQuery`1.<>c__DisplayClass7.<GetResults>b__5()\r\n' +
      '   at System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.Execute[TResult](Func`1 operation)\r\n' +
      '   at System.Data.Entity.Core.Objects.ObjectQuery`1.GetResults(Nullable`1 forMergeOption)\r\n' +
      '   at System.Data.Entity.Core.Objects.ObjectQuery`1.<System.Collections.Generic.IEnumerable<T>.GetEnumerator>b__0()\r\n' +
      '   at System.Data.Entity.Internal.LazyEnumerator`1.MoveNext()\r\n' +
      '   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)\r\n' +
      '   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)\r\n' +
      '   at IPLService.Repository.CategoryRepository.GetProductCategories() in C:\\Code\\All Battery\\ProductLookup\\IPLService\\Repository\\CategoryRepository.cs:line 104\r\n' +
      '   at IPLService.Repository.CategoryRepository.GetCategories() in C:\\Code\\All Battery\\ProductLookup\\IPLService\\Repository\\CategoryRepository.cs:line 31\r\n' +
      '   at IPLService.Controllers.CategoriesController.Categories() in C:\\Code\\All Battery\\ProductLookup\\IPLService\\Controllers\\CategoriesController.cs:line 37\r\n' +
      '   at lambda_method(Closure , Object , Object[] )\r\n' +
      '   at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass6_2.<GetExecutor>b__2(Object instance, Object[] methodParameters)\r\n' +
      '   at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellationToken)\r\n' +
      '--- End of stack trace from previous location where exception was thrown ---\r\n' +
      '   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n' +
      '   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n' +
      '   at System.Web.Http.Controllers.ApiControllerActionInvoker.<InvokeActionAsyncCore>d__1.MoveNext()\r\n' +
      '--- End of stack trace from previous location where exception was thrown ---\r\n' +
      '   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n' +
      '   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n' +
      '   at System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__5.MoveNext()\r\n' +
      '--- End of stack trace from previous location where exception was thrown ---\r\n' +
      '   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n' +
      '   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n' +
      '   at System.Web.Http.Dispatcher.HttpControllerDispatcher.<SendAsync>d__15.MoveNext()',
    InnerException: {
      Message: 'An error has occurred.',
      ExceptionMessage: "Unable to access availability database 'ProductPortal' because the database replica is not in the PRIMARY or SECONDARY role. Connections to an availability database is permitted only when the database replica is in the PRIMARY or SECONDARY role. Try the operation again later.",
      ExceptionType: 'System.Data.SqlClient.SqlException',
      StackTrace: '   at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, DbConnectionPool pool, String accessToken, Boolean applyTransientFaultHandling, SqlAuthenticationProviderManager sqlAuthProviderManager)\r\n' +
        '   at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)\r\n' +
        '   at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)\r\n' +
        '   at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)\r\n' +
        '   at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)\r\n' +
        '   at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)\r\n' +
        '   at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)\r\n' +
        '   at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)\r\n' +
        '   at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)\r\n' +
        '   at System.Data.SqlClient.SqlConnection.TryOpenInner(TaskCompletionSource`1 retry)\r\n' +
        '   at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)\r\n' +
        '   at System.Data.SqlClient.SqlConnection.Open()\r\n' +
        '   at System.Data.Entity.Infrastructure.Interception.InternalDispatcher`1.Dispatch[TTarget,TInterceptionContext](TTarget target, Action`2 operation, TInterceptionContext interceptionContext, Action`3 executing, Action`3 executed)\r\n' +
        '   at System.Data.Entity.Infrastructure.Interception.DbConnectionDispatcher.Open(DbConnection connection, DbInterceptionContext interceptionContext)\r\n' +
        '   at System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.<>c__DisplayClass1.<Execute>b__0()\r\n' +
        '   at System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.Execute[TResult](Func`1 operation)\r\n' +
        '   at System.Data.Entity.Core.EntityClient.EntityConnection.Open()'
    }
  }
}
ERROR HttpErrorResponse {
  headers: HttpHeaders {
    normalizedNames: Map {},
    lazyUpdate: null,
    lazyInit: [Function]
  },
  status: 500,
  statusText: 'Internal Server Error',
  url: 'http://products.interstatebatteries.com/ProductLookupService/api/productlookup/Categories',
  ok: false,
  name: 'HttpErrorResponse',
  message: 'Http failure response for http://products.interstatebatteries.com/ProductLookupService/api/productlookup/Categories: 500 Internal Server Error',
  error: {
    Message: 'An error has occurred.',
    ExceptionMessage: 'The underlying provider failed on Open.',
    ExceptionType: 'System.Data.Entity.Core.EntityException',
    StackTrace: '   at System.Data.Entity.Core.EntityClient.EntityConnection.Open()\r\n' +
      '   at System.Data.Entity.Core.Objects.ObjectContext.EnsureConnection(Boolean shouldMonitorTransactions)\r\n' +
      '   at System.Data.Entity.Core.Objects.ObjectContext.ExecuteInTransaction[T](Func`1 func, IDbExecutionStrategy executionStrategy, Boolean startLocalTransaction, Boolean releaseConnectionOnSuccess)\r\n' +
      '   at System.Data.Entity.Core.Objects.ObjectQuery`1.<>c__DisplayClass7.<GetResults>b__5()\r\n' +
      '   at System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.Execute[TResult](Func`1 operation)\r\n' +
      '   at System.Data.Entity.Core.Objects.ObjectQuery`1.GetResults(Nullable`1 forMergeOption)\r\n' +
      '   at System.Data.Entity.Core.Objects.ObjectQuery`1.<System.Collections.Generic.IEnumerable<T>.GetEnumerator>b__0()\r\n' +
      '   at System.Data.Entity.Internal.LazyEnumerator`1.MoveNext()\r\n' +
      '   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)\r\n' +
      '   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)\r\n' +
      '   at IPLService.Repository.CategoryRepository.GetProductCategories() in C:\\Code\\All Battery\\ProductLookup\\IPLService\\Repository\\CategoryRepository.cs:line 104\r\n' +
      '   at IPLService.Repository.CategoryRepository.GetCategories() in C:\\Code\\All Battery\\ProductLookup\\IPLService\\Repository\\CategoryRepository.cs:line 31\r\n' +
      '   at IPLService.Controllers.CategoriesController.Categories() in C:\\Code\\All Battery\\ProductLookup\\IPLService\\Controllers\\CategoriesController.cs:line 37\r\n' +
      '   at lambda_method(Closure , Object , Object[] )\r\n' +
      '   at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass6_2.<GetExecutor>b__2(Object instance, Object[] methodParameters)\r\n' +
      '   at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellationToken)\r\n' +
      '--- End of stack trace from previous location where exception was thrown ---\r\n' +
      '   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n' +
      '   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n' +
      '   at System.Web.Http.Controllers.ApiControllerActionInvoker.<InvokeActionAsyncCore>d__1.MoveNext()\r\n' +
      '--- End of stack trace from previous location where exception was thrown ---\r\n' +
      '   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n' +
      '   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n' +
      '   at System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__5.MoveNext()\r\n' +
      '--- End of stack trace from previous location where exception was thrown ---\r\n' +
      '   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n' +
      '   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n' +
      '   at System.Web.Http.Dispatcher.HttpControllerDispatcher.<SendAsync>d__15.MoveNext()',
    InnerException: {
      Message: 'An error has occurred.',
      ExceptionMessage: "Unable to access availability database 'ProductPortal' because the database replica is not in the PRIMARY or SECONDARY role. Connections to an availability database is permitted only when the database replica is in the PRIMARY or SECONDARY role. Try the operation again later.",
      ExceptionType: 'System.Data.SqlClient.SqlException',
      StackTrace: '   at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)\r\n' +
        '   at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)\r\n' +
        '   at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)\r\n' +
        '   at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)\r\n' +
        '   at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)\r\n' +
        '   at System.Data.SqlClient.SqlConnection.TryOpenInner(TaskCompletionSource`1 retry)\r\n' +
        '   at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)\r\n' +
        '   at System.Data.SqlClient.SqlConnection.Open()\r\n' +
        '   at System.Data.Entity.Infrastructure.Interception.InternalDispatcher`1.Dispatch[TTarget,TInterceptionContext](TTarget target, Action`2 operation, TInterceptionContext interceptionContext, Action`3 executing, Action`3 executed)\r\n' +
        '   at System.Data.Entity.Infrastructure.Interception.DbConnectionDispatcher.Open(DbConnection connection, DbInterceptionContext interceptionContext)\r\n' +
        '   at System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.<>c__DisplayClass1.<Execute>b__0()\r\n' +
        '   at System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.Execute[TResult](Func`1 operation)\r\n' +
        '   at System.Data.Entity.Core.EntityClient.EntityConnection.Open()'
    }
  }
}
ERROR HttpErrorResponse {
  headers: HttpHeaders {
    normalizedNames: Map {},
    lazyUpdate: null,
    lazyInit: [Function]
  },
  status: 500,
  statusText: 'Internal Server Error',
  url: 'http://products.interstatebatteries.com/ProductLookupService/api/productlookup/Categories/Watch%20and%20Keyfob%20Batteries',
  ok: false,
  name: 'HttpErrorResponse',
  message: 'Http failure response for http://products.interstatebatteries.com/ProductLookupService/api/productlookup/Categories/Watch%20and%20Keyfob%20Batteries: 500 Internal Server Error',
  error: {
    Message: 'An error has occurred.',
    ExceptionMessage: 'Object reference not set to an instance of an object.',
    ExceptionType: 'System.NullReferenceException',
    StackTrace: '   at IPLService.Repository.CategoryRepository.GetCategoryDetails(String categoryName) in C:\\Code\\All Battery\\ProductLookup\\IPLService\\Repository\\CategoryRepository.cs:line 65\r\n' +
      '   at IPLService.Controllers.CategoriesController.Categories(String categoryName) in C:\\Code\\All Battery\\ProductLookup\\IPLService\\Controllers\\CategoriesController.cs:line 75\r\n' +
      '   at lambda_method(Closure , Object , Object[] )\r\n' +
      '   at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass6_2.<GetExecutor>b__2(Object instance, Object[] methodParameters)\r\n' +
      '   at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellationToken)\r\n' +
      '--- End of stack trace from previous location where exception was thrown ---\r\n' +
      '   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n' +
      '   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n' +
      '   at System.Web.Http.Controllers.ApiControllerActionInvoker.<InvokeActionAsyncCore>d__1.MoveNext()\r\n' +
      '--- End of stack trace from previous location where exception was thrown ---\r\n' +
      '   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n' +
      '   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n' +
      '   at System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__5.MoveNext()\r\n' +
      '--- End of stack trace from previous location where exception was thrown ---\r\n' +
      '   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n' +
      '   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n' +
      '   at System.Web.Http.Dispatcher.HttpControllerDispatcher.<SendAsync>d__15.MoveNext()'
  }
}
ERROR ReferenceError: ga is not defined
    at ProductSearchComponent../src/app/shared/search/product-search/product-search.component.ts.ProductSearchComponent.customGTMFailureEvent (D:\Applications\ProductLookUp\UI\server.js:154267:9)
    at SafeSubscriber._next (D:\Applications\ProductLookUp\UI\server.js:154245:27)
    at SafeSubscriber.__tryOrUnsub (D:\Applications\ProductLookUp\UI\server.js:28290:16)
    at SafeSubscriber.next (D:\Applications\ProductLookUp\UI\server.js:28228:22)
    at Subscriber._next (D:\Applications\ProductLookUp\UI\server.js:28171:26)
    at Subscriber.next (D:\Applications\ProductLookUp\UI\server.js:28148:18)
    at MapSubscriber._next (D:\Applications\ProductLookUp\UI\server.js:30979:26)
    at MapSubscriber.Subscriber.next (D:\Applications\ProductLookUp\UI\server.js:28148:18)
    at FilterSubscriber._next (D:\Applications\ProductLookUp\UI\server.js:35079:30)
    at FilterSubscriber.Subscriber.next (D:\Applications\ProductLookUp\UI\server.js:28148:18)
ERROR ReferenceError: ga is not defined
    at ProductSearchComponent../src/app/shared/search/product-search/product-search.component.ts.ProductSearchComponent.customGTMFailureEvent (D:\Applications\ProductLookUp\UI\server.js:154267:9)
    at SafeSubscriber._next (D:\Applications\ProductLookUp\UI\server.js:154245:27)
    at SafeSubscriber.__tryOrUnsub (D:\Applications\ProductLookUp\UI\server.js:28290:16)
    at SafeSubscriber.next (D:\Applications\ProductLookUp\UI\server.js:28228:22)
    at Subscriber._next (D:\Applications\ProductLookUp\UI\server.js:28171:26)
    at Subscriber.next (D:\Applications\ProductLookUp\UI\server.js:28148:18)
    at MapSubscriber._next (D:\Applications\ProductLookUp\UI\server.js:30979:26)
    at MapSubscriber.Subscriber.next (D:\Applications\ProductLookUp\UI\server.js:28148:18)
    at FilterSubscriber._next (D:\Applications\ProductLookUp\UI\server.js:35079:30)
    at FilterSubscriber.Subscriber.next (D:\Applications\ProductLookUp\UI\server.js:28148:18)
ERROR ReferenceError: ga is not defined
    at ProductSearchComponent../src/app/shared/search/product-search/product-search.component.ts.ProductSearchComponent.customGTMFailureEvent (D:\Applications\ProductLookUp\UI\server.js:154267:9)
    at SafeSubscriber._next (D:\Applications\ProductLookUp\UI\server.js:154245:27)
    at SafeSubscriber.__tryOrUnsub (D:\Applications\ProductLookUp\UI\server.js:28290:16)
    at SafeSubscriber.next (D:\Applications\ProductLookUp\UI\server.js:28228:22)
    at Subscriber._next (D:\Applications\ProductLookUp\UI\server.js:28171:26)
    at Subscriber.next (D:\Applications\ProductLookUp\UI\server.js:28148:18)
    at MapSubscriber._next (D:\Applications\ProductLookUp\UI\server.js:30979:26)
    at MapSubscriber.Subscriber.next (D:\Applications\ProductLookUp\UI\server.js:28148:18)
    at FilterSubscriber._next (D:\Applications\ProductLookUp\UI\server.js:35079:30)
    at FilterSubscriber.Subscriber.next (D:\Applications\ProductLookUp\UI\server.js:28148:18)
ERROR ReferenceError: ga is not defined
    at ProductSearchComponent../src/app/shared/search/product-search/product-search.component.ts.ProductSearchComponent.customGTMFailureEvent (D:\Applications\ProductLookUp\UI\server.js:154267:9)
    at SafeSubscriber._next (D:\Applications\ProductLookUp\UI\server.js:154245:27)
    at SafeSubscriber.__tryOrUnsub (D:\Applications\ProductLookUp\UI\server.js:28290:16)
    at SafeSubscriber.next (D:\Applications\ProductLookUp\UI\server.js:28228:22)
    at Subscriber._next (D:\Applications\ProductLookUp\UI\server.js:28171:26)
    at Subscriber.next (D:\Applications\ProductLookUp\UI\server.js:28148:18)
    at MapSubscriber._next (D:\Applications\ProductLookUp\UI\server.js:30979:26)
    at MapSubscriber.Subscriber.next (D:\Applications\ProductLookUp\UI\server.js:28148:18)
    at FilterSubscriber._next (D:\Applications\ProductLookUp\UI\server.js:35079:30)
    at FilterSubscriber.Subscriber.next (D:\Applications\ProductLookUp\UI\server.js:28148:18)
ERROR ReferenceError: ga is not defined
    at ProductSearchComponent../src/app/shared/search/product-search/product-search.component.ts.ProductSearchComponent.customGTMSuccessEvent (D:\Applications\ProductLookUp\UI\server.js:154259:9)
    at SafeSubscriber._next (D:\Applications\ProductLookUp\UI\server.js:154225:23)
    at SafeSubscriber.__tryOrUnsub (D:\Applications\ProductLookUp\UI\server.js:28290:16)
    at SafeSubscriber.next (D:\Applications\ProductLookUp\UI\server.js:28228:22)
    at Subscriber._next (D:\Applications\ProductLookUp\UI\server.js:28171:26)
    at Subscriber.next (D:\Applications\ProductLookUp\UI\server.js:28148:18)
    at MapSubscriber._next (D:\Applications\ProductLookUp\UI\server.js:30979:26)
    at MapSubscriber.Subscriber.next (D:\Applications\ProductLookUp\UI\server.js:28148:18)
    at FilterSubscriber._next (D:\Applications\ProductLookUp\UI\server.js:35079:30)
    at FilterSubscriber.Subscriber.next (D:\Applications\ProductLookUp\UI\server.js:28148:18)
ERROR ReferenceError: document is not defined
    at AppComponent../src/app/app.component.ts.AppComponent.onDeactivate (D:\Applications\ProductLookUp\UI\server.js:137430:9)
    at Object.handleEvent (D:\Applications\ProductLookUp\UI\server.js:137335:25)
    at Object.handleEvent (D:\Applications\ProductLookUp\UI\server.js:26093:41)
    at Object.handleEvent (D:\Applications\ProductLookUp\UI\server.js:26638:29)
    at dispatchEvent (D:\Applications\ProductLookUp\UI\server.js:23542:25)
    at D:\Applications\ProductLookUp\UI\server.js:25032:38
    at SafeSubscriber.schedulerFn [as _next] (D:\Applications\ProductLookUp\UI\server.js:16513:36)
    at SafeSubscriber.__tryOrUnsub (D:\Applications\ProductLookUp\UI\server.js:28290:16)
    at SafeSubscriber.next (D:\Applications\ProductLookUp\UI\server.js:28228:22)
    at Subscriber._next (D:\Applications\ProductLookUp\UI\server.js:28171:26)