question

nitinpawar-8572 avatar image
0 Votes"
nitinpawar-8572 asked ZhiLv-MSFT commented

Error while using OPENID and .NET Core - Corelation failed

I am using .NET Core MVC application. The user is authenticated by microsoft azure SSO. This application works fine locally and when accessed from within the deployed server. However, when the same application is accessed from outside the deployed server the below error is being thrown.

from the application error logs :
remote server failed event..
Correlation failed.


from eventviewer

Category: Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware
EventId: 1
RequestId: 800010f2-0000-fe00-b63f-84710c7967bb
RequestPath: /signin-oidc
SpanId: |29ac2ee8-4270798e54554cbb.
TraceId: 29ac2ee8-4270798e54554cbb
ParentId:

An unhandled exception has occurred while executing the request.

Exception:
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 Fidelity_Ria.Startup.<>c.<<Configure>b_6_0>d.MoveNext() in D:\Projects\FidelityDSR\Fidelity-Ria\Startup.cs:line 158
--- End of stack trace from previous location where exception was thrown ---
at Microsoft.AspNetCore.Session.SessionMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Session.SessionMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.<Invoke>g
_Awaited|6_0(ExceptionHandlerMiddleware middleware, HttpContext context, Task task)

dotnet-aspnet-core-mvc
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @nitinpawar-8572,

when the same application is accessed from outside the deployed server the below error is being thrown.

Please the check deployed server (IIS) setting, whether it is limiting access from the outside?

0 Votes 0 ·

0 Answers