skoruba / IdentityServer4.Admin

The administration for the IdentityServer4 and Asp.Net Core Identity
MIT License
3.56k stars 1.15k forks source link

InvalidOperationException: IDX20803 #651

Closed hdu7 closed 4 years ago

hdu7 commented 4 years ago

Here is the errors.
An unhandled exception occurred while processing the request. InvalidOperationException: IDX20803: Unable to obtain configuration from: '[PII is hidden. For more details, see https://aka.ms/IdentityModel/PII.]'. Microsoft.IdentityModel.Protocols.ConfigurationManager.GetConfigurationAsync(CancellationToken cancel)

Stack Query Cookies Headers Routing InvalidOperationException: IDX20803: Unable to obtain configuration from: '[PII is hidden. For more details, see https://aka.ms/IdentityModel/PII.]'. Microsoft.IdentityModel.Protocols.ConfigurationManager.GetConfigurationAsync(CancellationToken cancel) Microsoft.AspNetCore.Authentication.OpenIdConnect.OpenIdConnectHandler.HandleChallengeAsyncInternal(AuthenticationProperties properties) Microsoft.AspNetCore.Authentication.OpenIdConnect.OpenIdConnectHandler.HandleChallengeAsync(AuthenticationProperties properties) Microsoft.AspNetCore.Authentication.AuthenticationHandler.ChallengeAsync(AuthenticationProperties properties) Microsoft.AspNetCore.Authentication.AuthenticationService.ChallengeAsync(HttpContext context, string scheme, AuthenticationProperties properties) Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context) Microsoft.AspNetCore.Localization.RequestLocalizationMiddleware.Invoke(HttpContext context) Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context) NWebsec.AspNetCore.Middleware.Middleware.CspMiddleware.Invoke(HttpContext context) NWebsec.AspNetCore.Middleware.Middleware.MiddlewareBase.Invoke(HttpContext context) NWebsec.AspNetCore.Middleware.Middleware.MiddlewareBase.Invoke(HttpContext context) NWebsec.AspNetCore.Middleware.Middleware.MiddlewareBase.Invoke(HttpContext context) NWebsec.AspNetCore.Middleware.Middleware.MiddlewareBase.Invoke(HttpContext context) NWebsec.AspNetCore.Middleware.Middleware.MiddlewareBase.Invoke(HttpContext context) Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.Invoke(HttpContext context)

hdu7 commented 4 years ago

Azure didn't take ASPNETCORE_ENVIRONMENT value

shayank66 commented 4 years ago

hi @hdu7. could you please explain a little bit more about how can I fix this bug?