episerver / Foundation-spa-react

Apache License 2.0
34 stars 16 forks source link

Exception on "OpenID Connect" #59

Closed JevgenijsPosohovskis closed 1 year ago

JevgenijsPosohovskis commented 1 year ago

Hi,

I am getting this error when press button OpenID Connect from admin panel (last package & fresh install, tried on multiple PCs)

An unhandled exception occurred while processing the request. MissingMethodException: Method not found: 'Void EPiServer.Shell.UI.Controllers.Internal.EPiResourcesController..ctor(EPiServer.Framework.Localization.LocalizationService)'. EPiServer.OpenIDConnect.UI.DefaultController.GetResources()

Raw exception details:

System.MissingMethodException: Method not found: 'Void EPiServer.Shell.UI.Controllers.Internal.EPiResourcesController..ctor(EPiServer.Framework.Localization.LocalizationService)'. at EPiServer.OpenIDConnect.UI.DefaultController.GetResources() at EPiServer.OpenIDConnect.UI.DefaultController.Index() at lambda_method701(Closure , Object , Object[] ) 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() --- End of stack trace from previous location --- at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync() --- End of stack trace from previous location --- at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.gAwaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeFilterPipelineAsync() --- End of stack trace from previous location --- at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.gAwaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope) at Microsoft.AspNetCore.Routing.EndpointMiddleware.g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger) at SixLabors.ImageSharp.Web.Middleware.ImageSharpMiddleware.Invoke(HttpContext httpContext, Boolean retry) at Microsoft.AspNetCore.ResponseCompression.ResponseCompressionMiddleware.InvokeCore(HttpContext context) at Microsoft.AspNetCore.Authorization.Policy.AuthorizationMiddlewareResultHandler.HandleAsync(RequestDelegate next, HttpContext context, AuthorizationPolicy policy, PolicyAuthorizationResult authorizeResult) at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context) at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context) at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.Invoke(HttpContext context)

Can You help me resolve this or any advice? Thanks in advance

remkoj commented 1 year ago

This bug will be fixed with a future update from the Optimizely CMS packages, see: https://world.optimizely.com/support/Bug-list/bug/HAPI-2611

For the time being, there are two options:

  1. If you're able to create a fresh database - downgrade the Optimizely CMS packages to 12.16.x
  2. Create the needed users through code in the startup.cs
JevgenijsPosohovskis commented 1 year ago

Thanks for quick response!