auth0-samples / auth0-aspnetcore-mvc-samples

Auth0 Integration Samples for ASP.NET Core MVC Web Applications
https://auth0.com/docs/quickstart/webapp/aspnet-core
MIT License
152 stars 199 forks source link

Production environment error (working in localhost) #80

Closed juanjoserodriguezmagro closed 1 year ago

juanjoserodriguezmagro commented 1 year ago

Hello,

I have published this mvc sample (using my Auth0 ClientId and Domain credentials) in a production environment.

On localhost I can see the login page, but on production environment I get an error.

Do we know why? Thanks.

An unhandled exception occurred while processing the request. SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. System.Net.Sockets.Socket+AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)

frederikprijck commented 1 year ago

Hey, not sure. can you ping your auth0 domain if you connect to your production server?

From what i can tell, it should be a networking issue https://stackoverflow.com/questions/17693353/a-connection-attempt-failed-because-the-connected-party-did-not-properly-respon

juanjoserodriguezmagro commented 1 year ago

I am reading about "IdentityModelEventSource.ShowPII = true;". It does not work. I can not find posts about Auth0 NET 6 MVC in production environments. Using IONOS like hosting.

frederikprijck commented 1 year ago

We can't really help with hosting issues. I would recommend verifying you can access your Auth0 domain from your production server. It's not uncommon that network errors can cause issues, but these are beyond our SDK.