uMarketingSolutions / uMarketingSuite

The complete marketing toolbox for Umbraco projects
1 stars 0 forks source link

Error when upgrading to Umbraco 12 #34

Closed andrewsouthern01 closed 1 year ago

andrewsouthern01 commented 1 year ago

Hi,

Running a clean install of Umbraco 12 to test package compatibility, with uMarketingSuite I get this error: I'm using LocalDB.

System.MissingMethodException: Method not found: 'Umbraco.Cms.Infrastructure.Migrations.ExecutedMigrationPlan Umbraco.Cms.Infrastructure.Migrations.Upgrade.Upgrader.Execute(Umbraco.Cms.Core.Migrations.IMigrationPlanExecutor, Umbraco.Cms.Core.Scoping.IScopeProvider, Umbraco.Cms.Core.Services.IKeyValueService)'. at uMarketingSuite.Data.Common.Migrations.MigrationPlanExecuter.Execute(MigrationPlan plan, Boolean ignoreExceptions) at uMarketingSuite.Web.Migrations.UmsMigrationsComponent.Initialize() in D:\projecten\uMarketingSuite\uMarketingSuite.Web\Migrations\UmsMigrationsComponent.cs:line 81 at Umbraco.Cms.Core.Composing.ComponentCollection.Initialize() at Umbraco.Cms.Infrastructure.Runtime.CoreRuntime.StartAsync(CancellationToken cancellationToken, Boolean isRestarting) at Umbraco.Cms.Infrastructure.Runtime.CoreRuntime.RestartAsync() at Umbraco.Cms.Web.BackOffice.Install.InstallApiController.CompleteInstall() at lambda_method239(Closure, Object) at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.TaskOfActionResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.gAwaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) 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.gAwaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope) at Microsoft.AspNetCore.Routing.EndpointMiddleware.gAwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger) at Umbraco.Cms.Web.Common.Middleware.BasicAuthenticationMiddleware.InvokeAsync(HttpContext context, RequestDelegate next) at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.<>cDisplayClass6_1.d.MoveNext() --- End of stack trace from previous location --- at Umbraco.Cms.Web.BackOffice.Middleware.BackOfficeExternalLoginProviderErrorMiddleware.InvokeAsync(HttpContext context, RequestDelegate next) at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.<>c__DisplayClass6_1.<b1>d.MoveNext() --- End of stack trace from previous location --- at Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIMiddleware.Invoke(HttpContext httpContext) at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext, ISwaggerProvider swaggerProvider) at Microsoft.AspNetCore.Session.SessionMiddleware.Invoke(HttpContext context) at Microsoft.AspNetCore.Session.SessionMiddleware.Invoke(HttpContext context) at Microsoft.AspNetCore.Localization.RequestLocalizationMiddleware.Invoke(HttpContext context) at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context) at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context) at StackExchange.Profiling.MiniProfilerMiddleware.Invoke(HttpContext context) in C:\projects\dotnet\src\MiniProfiler.AspNetCore\MiniProfilerMiddleware.cs:line 112 at Umbraco.Cms.Web.Common.Middleware.UmbracoRequestMiddleware.InvokeAsync(HttpContext context, RequestDelegate next) at Umbraco.Cms.Web.Common.Middleware.UmbracoRequestMiddleware.InvokeAsync(HttpContext context, RequestDelegate next) at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.<>cDisplayClass6_1.d.MoveNext() --- End of stack trace from previous location --- at Umbraco.Cms.Web.Common.Middleware.PreviewAuthenticationMiddleware.InvokeAsync(HttpContext context, RequestDelegate next) at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.<>c__DisplayClass6_1.<b1>d.MoveNext() --- End of stack trace from previous location --- at Umbraco.Cms.Web.Common.Middleware.UmbracoRequestLoggingMiddleware.InvokeAsync(HttpContext context, RequestDelegate next) at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.<>cDisplayClass6_1.d.MoveNext() --- End of stack trace from previous location --- at SixLabors.ImageSharp.Web.Middleware.ImageSharpMiddleware.Invoke(HttpContext httpContext, Boolean retry) at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddlewareImpl.Invoke(HttpContext context) HEADERS ======= Accept: application/json, text/plain, / Host: localhost:44370 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36 Accept-Encoding: gzip, deflate, br Accept-Language: en-US,en;q=0.9,fr-CA;q=0.8,fr;q=0.7 Content-Type: application/json;charset=UTF-8 Cookie: UMB_UPDCHK=1; umb_installId=6a022417-a78b-4cef-b3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SsghtBXTUh8Ivf6j1V0XBDSUIhmIbtW0dSoDebvhAs5CyM5WpnlJG1vmlXck2tNJ7LALE2M0ie5JlHHcedzs10YMLWNXs0Rs1T7qZB4lGvYlO8slwOLIViSgh6i356NLeSI5Rh1Htf9y3R4sTJyhopGYvIqnRyRlQZXgzKor15uGcqTLSrgMkQj04TIGV239i-J8WAKzj8WQQ6HIUjcSrUnKWGaIQamM5X1iCRW9iYhV3pdRMBR_gntahqSsXeOdk2KifglxCGWcNFnsQRjIlthepbm6QSRQ33yCAa99HBetTdNedErIgycJZQOTsRAidSJDS2Cm55J3Ceub8wjKatES3NDWC_k6L2_fWdR_2v1qGDV94ytVRzmZZ-Jc1_1eqfV0MuMmlT--ZscI2N_4A5pH3ab82BNkC5XiNNaE6u0oYcXzrB90Bnwjpec3OLJ-G20PRHXHN1HTj5d5MpvcfizV2Thh2CfRUH0cDqQ7ZB0GPhAQ2zAX_LgMyhiKta4aXUIMozFrGAQWq9ZbSzzzNcKbCSxIUTKKsjhrg Origin: https://localhost:44370 Referer: https://localhost:44370/ Content-Length: 2595 sec-ch-ua: "Not.A/Brand";v="8", "Chromium";v="114", "Google Chrome";v="114" sec-ch-ua-mobile: ?0 sec-ch-ua-platform: "Windows" sec-fetch-site: same-origin sec-fetch-mode: cors sec-fetch-dest: empty

Regards, Andrew

Umbraco: 12 uMarketingSuite: 1.21.2

PerplexDaniel commented 1 year ago

Hi Andrew,

Thank you for reporting this.

We were aware of the issue and have a fix in development. Umbraco has changed the method signature of Upgrader.Execute, it now wants an ICoreScopeProvider rather than an IScopeProvider so our code that was compiled with the old signature no longer runs.

I do not have an ETA yet on when this fix will be released but I expect this will happen this month.

I will update this issue when the fix is released.

PerplexDaniel commented 1 year ago

Hi Andrew,

We just released v1.22.0 which should fix the issues with Umbraco v12.

I'm closing this, if you see any issues feel free to reopen.