An error occured while attempting to log an exception.

The original exception was: 'System.Web.HttpException: This is an invalid webresource request. at System.Web.Handlers.AssemblyResourceLoader.System.Web.IHttpHandler.ProcessRequest(HttpContext context) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)'.

The exception while performing logging operation was: 'System.ArgumentException: This application is not running in a web context. Therefore, the login id of the user is required. Please supply the login id via an application setting for the key 'LOGIN_USER_ID' at CID.IPath.NewBusinessLayer.errorlog.LogError(Exception exception) in D:\a\1\s\src\CID.IPath.NewBusinessLayer\errorlog.cs:line 100 at CID.IPath.PresentationLayer.Web.ErrorHandlingModule.mApplication_Error(Object sender, EventArgs e) in D:\a\1\s\src\CID.IPath.PresentationLayer.Web\Old_App_Code\ErrorHandlingModule.vb:line 37'.