System.InvalidOperationException: The exception handler configured on ExceptionHandlerOptions produced a 404 status response. This InvalidOperationException containing the original exception was thrown since this is often due to a misconfigured ExceptionHandlingPath. If the exception handler is expected to return 404 status responses then set AllowStatusCode404Response to true. ---> System.NullReferenceException: Object reference not set to an instance of an object. at RevenueWell.Access.Authentication.OpenIdConnect.Website.Controllers.PatientConnectAuthenticationController.SignIn(String returnUrl) in C:\tcwrk\8ac2242367b84adb\RevenueWell.Access.Authentication.OpenIdConnect.Website.Core\Controllers\PatientConnectAuthenticationController.cs:line 96 at lambda_method830(Closure , Object ) at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.TaskOfActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Logged|12_1(ControllerActionInvoker invoker) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|20_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Logged|17_1(ResourceInvoker invoker) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Logged|17_1(ResourceInvoker invoker) at Microsoft.AspNetCore.Routing.EndpointMiddleware.g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger) at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context) at Microsoft.AspNetCore.Session.SessionMiddleware.Invoke(HttpContext context) at Microsoft.AspNetCore.Session.SessionMiddleware.Invoke(HttpContext context) at Duende.IdentityServer.Hosting.IdentityServerMiddleware.Invoke(HttpContext context, IdentityServerOptions options, IEndpointRouter router, IUserSession userSession, IEventService events, IIssuerNameService issuerNameService, ISessionCoordinationService sessionCoordinationService) in /_/src/IdentityServer/Hosting/IdentityServerMiddleware.cs:line 121 at Duende.IdentityServer.Hosting.MutualTlsEndpointMiddleware.Invoke(HttpContext context, IAuthenticationSchemeProvider schemes) in /_/src/IdentityServer/Hosting/MutualTlsEndpointMiddleware.cs:line 96 at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context) at Duende.IdentityServer.Hosting.DynamicProviders.DynamicSchemeAuthenticationMiddleware.Invoke(HttpContext context) in /_/src/IdentityServer/Hosting/DynamicProviders/DynamicSchemes/DynamicSchemeAuthenticationMiddleware.cs:line 51 at Duende.IdentityServer.Hosting.BaseUrlMiddleware.Invoke(HttpContext context) in /_/src/IdentityServer/Hosting/BaseUrlMiddleware.cs:line 28 at RevenueWell.Access.Authentication.Web.Core.Middleware.ErrorLoggingMiddleware.InvokeAsync(HttpContext context) in C:\tcwrk\8ac2242367b84adb\RevenueWell.Access.Authentication.Web.Core\Middleware\ErrorLoggingMiddleware.cs:line 23 at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.g__Awaited|6_0(ExceptionHandlerMiddleware middleware, HttpContext context, Task task) --- End of inner exception stack trace --- at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.HandleException(HttpContext context, ExceptionDispatchInfo edi) at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.g__Awaited|6_0(ExceptionHandlerMiddleware middleware, HttpContext context, Task task) at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.Invoke(HttpContext context) HEADERS ======= Accept: */* Accept-Encoding: gzip, br Host: oidc.rwlogin.com Max-Forwards: 10 User-Agent: claudebot cdn-loop: cloudflare cf-ipcountry: US x-forwarded-for: 35.175.236.44, 172.70.134.218:32564 cf-ray: 86b69eab8dd656da-IAD x-forwarded-proto: https cf-visitor: {"scheme":"https"} cf-connecting-ip: 35.175.236.44 X-ARR-LOG-ID: 70525807-14f3-4d5b-8db0-372524d081bd CLIENT-IP: 172.70.134.218:32564 DISGUISED-HOST: oidc.rwlogin.com X-SITE-DEPLOYMENT-ID: rwlv-oidccore-api__a39c WAS-DEFAULT-HOSTNAME: rwlv-oidccore-api.azurewebsites.net X-AppService-Proto: https X-ARR-SSL: 2048|256|CN=GlobalSign GCC R3 DV TLS CA 2020, O=GlobalSign nv-sa, C=BE|CN=*.rwlogin.com X-Forwarded-TlsVersion: 1.3 X-Original-URL: /PatientConnectAuthentication/SignIn?returnUrl=%2Fconnect%2Fauthorize%3Fclient_id%3Daccess.idp%26redirect_uri%3Dhttps%253A%252F%252Frwlogin.com%252Fsignin-oidc%26response_type%3Dcode%2520id_token%26scope%3Dopenid%2520profile%2520rwl%2520rwinternal%26response_mode%3Dform_post%26nonce%3D637267172457811862.NWEwOTM2NTItNzMwYS00YTg5LWI0MmUtNTVhZDJhYmFiOWVhMGVjN2E0NGYtZmM4OS00ZDRlLWEyY2EtZGM1N2NiN2Y0Mzdi%26acr_values%3Drws%253APatient%2520rwp%253ApracticeId%253D2883%2526returnUrl%253Dhttps%25253a%25252f%25252fd1.patientconnect365.com%25252fPortal%25252f97a86263-9ab4-44fc-997a-f400eaa7265e%25252frequestappoi%26state%3DCfDJ8Fcs7OwCW0ZDk0DusfRaPsvWYW2C3jlAS_pdSzMLo5spytswfJ61lJIvw4w4SlQUzobDIqqJjSMzsME_PqMgurrkeB93U3TAZ1LJTRVA44Bq3dCfuZg2nrcv83IrwWhKuPx-L_6ppg0Na888JW8b14NSHhmnqEOsLJen1y7qXUhdS1KiVdmsW9nz4BycW7_sSj8NELy0fcibUsOBKftaYjh2gH8q_KFU2h6ViRDiaadK4lRglnV8msviOHOMDlPlY465o33SOJ86ErKg8h8_m-xtsfaZ--V9IFWlwvZtCympsVhnxJ5vkvaS9AEYlJxWknjwHdEb5C_SbLKnRRXSfa8W36Tp8D0dVAXBU6YTQAKznZRqBFGfUlnZbQhiSY22QMVaq1R30ecC121qzt7eol2uYbUnQgsLzEkEz64y0hCF6ch9e5HIcUvGJSdDE2jbZo97x6HqxdHJsB9icl9qDSca407IJqCx5jCv3pfGoVzrRP--VU5FijhNL1yGY8rSlZ1wT9G3fk5wbAxRAsX4XbA%26x-client-SKU%3DID_NET461%26x-client-ver%3D5.3.0.0 X-WAWS-Unencoded-URL: /PatientConnectAuthentication/SignIn?returnUrl=%2Fconnect%2Fauthorize%3Fclient_id%3Daccess.idp%26redirect_uri%3Dhttps%253A%252F%252Frwlogin.com%252Fsignin-oidc%26response_type%3Dcode%2520id_token%26scope%3Dopenid%2520profile%2520rwl%2520rwinternal%26response_mode%3Dform_post%26nonce%3D637267172457811862.NWEwOTM2NTItNzMwYS00YTg5LWI0MmUtNTVhZDJhYmFiOWVhMGVjN2E0NGYtZmM4OS00ZDRlLWEyY2EtZGM1N2NiN2Y0Mzdi%26acr_values%3Drws%253APatient%2520rwp%253ApracticeId%253D2883%2526returnUrl%253Dhttps%25253a%25252f%25252fd1.patientconnect365.com%25252fPortal%25252f97a86263-9ab4-44fc-997a-f400eaa7265e%25252frequestappoi%26state%3DCfDJ8Fcs7OwCW0ZDk0DusfRaPsvWYW2C3jlAS_pdSzMLo5spytswfJ61lJIvw4w4SlQUzobDIqqJjSMzsME_PqMgurrkeB93U3TAZ1LJTRVA44Bq3dCfuZg2nrcv83IrwWhKuPx-L_6ppg0Na888JW8b14NSHhmnqEOsLJen1y7qXUhdS1KiVdmsW9nz4BycW7_sSj8NELy0fcibUsOBKftaYjh2gH8q_KFU2h6ViRDiaadK4lRglnV8msviOHOMDlPlY465o33SOJ86ErKg8h8_m-xtsfaZ--V9IFWlwvZtCympsVhnxJ5vkvaS9AEYlJxWknjwHdEb5C_SbLKnRRXSfa8W36Tp8D0dVAXBU6YTQAKznZRqBFGfUlnZbQhiSY22QMVaq1R30ecC121qzt7eol2uYbUnQgsLzEkEz64y0hCF6ch9e5HIcUvGJSdDE2jbZo97x6HqxdHJsB9icl9qDSca407IJqCx5jCv3pfGoVzrRP--VU5FijhNL1yGY8rSlZ1wT9G3fk5wbAxRAsX4XbA%26x-client-SKU%3DID_NET461%26x-client-ver%3D5.3.0.0