# An error was encountered while handling the remote login

**URL:** <https://community.auth0.com/t/an-error-was-encountered-while-handling-the-remote-login/90918>\
**Category:** Get Help\
**Tags:** login\
**Created:** [September 20, 2022, 3:03am UTC](https://community.auth0.com/t/an-error-was-encountered-while-handling-the-remote-login/90918 "2022-09-20T03:03:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dilipa](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dilipa/32/33347_2.png) [@dilipa](https://community.auth0.com/u/dilipa)\
**Post date:** [September 20, 2022, 3:03am UTC](https://community.auth0.com/t/an-error-was-encountered-while-handling-the-remote-login/90918/1 "2022-09-20T03:03:19Z")

</div>

Facing issue on production level  
In development environment everything working as expected, but as soon as we move to production it started giving below mention error.

- Used SDK: [ASP.NET](http://ASP.NET) Core
- SDK Version: 1.0.3
- Code Snippets/Error Messages/Supporting Details/Screenshots:

**A)** warn: Microsoft.AspNetCore.Authentication.OpenIdConnect.OpenIdConnectHandler[15]  
.AspNetCore.Correlation.Auth0.uxZ4WgEUjvD2x6crmLzZE8fT2X3w6FqKk\_uSmh7khW4’ cookie not found.

**B)** fail: Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware[1]An unhandled exception has occurred while executing the request.

**C)** System.Exception: An error was encountered while handling the remote login.

---

<div class="post-metadata">

**Author:** ![dawid.matuszczyk](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dawid.matuszczyk/32/74550_2.png) [@dawid.matuszczyk](https://community.auth0.com/u/dawid.matuszczyk)\
**Post date:** [July 30, 2024, 2:11pm UTC](https://community.auth0.com/t/an-error-was-encountered-while-handling-the-remote-login/90918/2 "2024-07-30T14:11:07Z")

</div>

Hi team!

We are providing solutions/potential solutions to the most viewed topics. During the investigation I found a similar topic in SO with a possible solution to the described issue: [c# - Correlation failed in net.core / asp.net identity / openid connect - Stack Overflow](https://stackoverflow.com/questions/50262561/correlation-failed-in-net-core-asp-net-identity-openid-connect)

Thanks  
Dawid

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [August 13, 2024, 2:11pm UTC](https://community.auth0.com/t/an-error-was-encountered-while-handling-the-remote-login/90918/3 "2024-08-13T14:11:49Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
