# Azure AD Unknow location error

**URL:** <https://forum.radzen.com/t/azure-ad-unknow-location-error/5923>\
**Category:** Blazor Server\
**Created:** [December 5, 2020, 3:19pm UTC](https://forum.radzen.com/t/azure-ad-unknow-location-error/5923 "2020-12-05T15:19:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Carlos\_Carminati](https://forum.radzen.com/user_avatar/forum.radzen.com/carlos_carminati/32/376_2.png) [@Carlos\_Carminati](https://forum.radzen.com/u/Carlos_Carminati)\
**Post date:** [December 5, 2020, 3:19pm UTC](https://forum.radzen.com/t/azure-ad-unknow-location-error/5923/1 "2020-12-05T15:19:55Z")

</div>

Hi, I'm trying my first blazor server app using Azure AD authentication. I configured security following documentation instructions, however when I tried to access a private page this error appear:

dotnet: warn: Microsoft.AspNetCore.Authentication.OpenIdConnect.OpenIdConnectHandler[15]  
'.AspNetCore.Correlation.AzureADOpenID.7WKUXH92Dh1jGrYk3x18Ef4koOTNPDFzc9XvGXqmty0' cookie not found.

dotnet: info: Microsoft.AspNetCore.Authentication.OpenIdConnect.OpenIdConnectHandler[4]  
Error from RemoteAuthentication: Correlation failed..  
fail: Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware[1]  
An unhandled exception has occurred while executing the request.  
System.Exception: An error was encountered while handling the remote login.  
---\> System.Exception: Correlation failed.  
--- End of inner exception stack trace ---  
at Microsoft.AspNetCore.Authentication.RemoteAuthenticationHandler`1.HandleRequestAsync()  
at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)  
at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.Invoke(HttpContext context)

 ![image](https://forum.radzen.com/uploads/default/original/2X/3/3e42a7c9deda9b79b2cad3820521f3211f10f13a.png)

What's wrong?

Thanks!

---

<div class="post-metadata">

**Author:** ![korchev](https://forum.radzen.com/user_avatar/forum.radzen.com/korchev/32/4_2.png) [@korchev](https://forum.radzen.com/u/korchev)\
**Post date:** [December 5, 2020, 3:42pm UTC](https://forum.radzen.com/t/azure-ad-unknow-location-error/5923/2 "2020-12-05T15:42:49Z")

</div>

We haven't seen this error before. I searched online and found that it could be [caused by a few things](https://github.com/aspnet/security/issues?utf8=%E2%9C%93&q=Correlation+Failed). One is related to [some Chrome security settings](https://stackoverflow.com/questions/50262561/correlation-failed-in-net-core-asp-net-identity-openid-connect) which should be solvable with [this code.](https://github.com/auth0-samples/auth0-aspnetcore-mvc-samples/issues/35#issuecomment-597902479). The other seems to be related to Azure deployments and load balancers. Not sure if this is the case for you. There is also this blog post which suggests a different solution: [https://www.kevindockx.com/solving-correlation-failed-state-property-not-found-errors-openid-connect-middleware-asp-net-core/](https://www.kevindockx.com/solving-correlation-failed-state-property-not-found-errors-openid-connect-middleware-asp-net-core/).

One thing you can try is using Incognito mode to see if it isn't a caching issue. In addition you can try logging with a different browser to rule out the Chrome security settings.
