Readdy Write  
0,00 €
Your View Money
Views: Count
Self 20% 0
Your Content 60% 0

Users by Links 0
u1*(Content+Views) 10% 0
Follow-Follower 0
s2*(Income) 5% 0

Count
Followers 0
Login Register as User

Gelöst: Client xxx not found. Source=Microsoft.AspNetCore.ApiAuthorization.IdentityServer

07.04.2021 (👁17173)


 

Fehlermeldung

System.InvalidOperationException

  HResult=0x80131509

  Message=Client 'AspAngular_Ident11' not found.

  Source=Microsoft.AspNetCore.ApiAuthorization.IdentityServer

 

Ursache:

In Microsoft Asp Core Anwendungen mit Angular oder React als Frontend, wird die User-Identifizierung über eine Client Code im Ordner ClientApp/src/api-authorization durchgeführt.

In dieser Anwendung steht auch ein ApplicationName zum Backend namentlich benannt.

Lösung:

Asp Core .Net mit Authentication erneut als Projekt erstellen und das Verzeichnis ClientApp/src/api-authorization  erneut in die Anwendung kopieren

 

Lösung:

Asp Core .Net mit Authentication erneut als Projekt erstellen und das Verzeichnis ClientApp/src/api-authorization  erneut in die Anwendung kopieren

  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()