#

Resolved: Client  xxx  not found.   Source=Microsoft.AspNetCore.ApiAuthorization.IdentityServer

 

Fehlermeldung

System.InvalidOperationException

  HResult=0x80131509

  Message=Client 'AspAngular_Ident11' not found.

  Source=Microsoft.AspNetCore.ApiAuthorization.IdentityServer

 

cause:

In Microsoft Asp Core applications with Angular or React as the frontend, user identification is performed through a client code in the ClientApp/src/api-authorization folder.

In this application, an ApplicationName is also named after the backend.

 

solution:

Recreate Asp Core .Net as a project with Authentication and copy the ClientApp/src/api-authorization directory back to the application

 

 

 

solution:

Recreate Asp Core .Net as a project with Authentication and copy the ClientApp/src/api-authorization directory back to the application

 

 

 

 

  StackTrace:

   at Microsoft.AspNetCore.ApiAuthorization.IdentityServer.ClientCollection.get_Item(String key)

   at Microsoft.AspNetCore.ApiAuthorization.IdentityServer.DefaultClientRequestParametersProvider.GetClientParameters(HttpContext context, String clientId)

   at Angular_ASP.Controllers.OidcConfigurationController.GetClientRequestParameters(String clientId) in D:\Programmierung\Web\Angular_ASP\Angular_ASP\Controllers\OidcConfigurationController.cs:line 22

   at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.SyncActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)

   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeActionMethodAsync()

   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)

   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeNextActionFilterAsync()

Mobile

.

0123movie.net