我得到了以下错误:
InvalidOperationException: Unable to resolve service for type 'Microsoft.AspNetCore.Identity.RoleManager`1[Microsoft.AspNetCore.Identity.IdentityUser]' while attempting to activate 'july_15_auth.Controllers.AccountControllerusing System.Threading.T
System.InvalidOperationException: IDX20803: Unable to obtain configuration from: '[PII is hidden]'.System.InvalidOperationException: IDX20803: Unable to obtain configuration from: '[PII is hidden]'. -System.InvalidOperationException: IDX20803: Unable to
InvalidOperationException: Multiple constructors accepting all given argument types have been found inType[] argumentTypes, ref ConstructorInfo matchingConstructor, ref Nullable<int>[] parameterMap)
Microsoft.AspNet
Exception thrown: 'System.InvalidOperationException' in Microsoft.AspNetCore.Mvc.ViewFeatures.dllMicrosoft.AspNetCore.Mvc.Internal.ControllerActionInvoker' in mscorlib.dl
System.InvalidOperationException: An anonymous request was received in between authentication handshakeat Microsoft.AspNetCore.Authentication.Negotiate.NegotiateHandler.HandleRequestAsync()
fail: Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddlewareSystem.Invalid
错误消息
System.InvalidOperationException: DataAnnotationsValidator需要一个EditContext类型的级联参数。在Microsoft.AspNetCore.Components.Forms.DataAnnotationsValidator.OnInitialized() at Microsoft.AspNetCore.Components.ComponentBase.RunInitAndSetParametersAsync