Skip to content

System.MissingMethodException: Method not found: 'Void' in 15.3.2 #701

Closed
@BenWhite27

Description

@BenWhite27

Which component is this issue related to?

Umbraco Commerce (Core)

Which Umbraco Commerce version are you using? (Please write the exact version, example: 10.1.0)

15.3.2

Bug summary

System.MissingMethodException getting logged when updating an order and during processing of a payment provider callback.

Despite the errors I'm not experiencing any issues though, payment callbacks happen okay and update the order as required, and the order status does change when updating that.

Specifics

Error processing Umbraco Commerce callback using [PaymentProvider] for order [Order Number]

System.MissingMethodException: Method not found: 'Void Umbraco.Cms.Infrastructure.HostedServices.IBackgroundTaskQueue.QueueBackgroundWorkItem(System.Func`2<System.Threading.CancellationToken,System.Threading.Tasks.Task>)'.
   at Umbraco.Commerce.Infrastructure.Resiliency.PollyExecutionStrategyBase.ExecuteAsync[TResult](Func`2 operation, Func`2 verifySucceeded, CancellationToken cancellationToken)
   at Umbraco.Commerce.Cms.Web.PaymentRequestHandler.Callback(HttpContext httpContext, IPaymentProvider paymentProvider, PaymentProviderContext ctx, CancellationToken token)

Unhandled exception, maybe related.

System.MissingMethodException: Method not found: 'Void Umbraco.Cms.Infrastructure.HostedServices.IBackgroundTaskQueue.QueueBackgroundWorkItem(System.Func`2<System.Threading.CancellationToken,System.Threading.Tasks.Task>)'.
   at Umbraco.Commerce.Infrastructure.Resiliency.PollyExecutionStrategyBase.ExecuteAsync[TResult](Func`2 operation, Func`2 verifySucceeded, CancellationToken cancellationToken)
   at Umbraco.Commerce.Cms.Web.PaymentRequestHandler.Callback(HttpContext httpContext, IPaymentProvider paymentProvider, PaymentProviderContext ctx, CancellationToken token)
   at Umbraco.Commerce.Cms.Web.PaymentRequestHandler.HandleRequestWithOrderAsync(HttpContext httpContext, RequestHandlerType requestHandlerType, String paymentProviderAlias, Guid orderId, String orderNumber, String hash, Func`4 handler, CancellationToken token)
   at Umbraco.Commerce.Cms.Web.PaymentRequestHandler.LockedRequest(Func`1 handler, String lockKey, CancellationToken token)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.TaskOfIActionResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
... more lines available

Unhandled exception, occurred when saving an order

System.MissingMethodException: Method not found: 'Void Umbraco.Cms.Infrastructure.HostedServices.IBackgroundTaskQueue.QueueBackgroundWorkItem(System.Func`2<System.Threading.CancellationToken,System.Threading.Tasks.Task>)'.
   at Umbraco.Commerce.Infrastructure.Resiliency.PollyExecutionStrategyBase.ExecuteAsync[TResult](Func`2 operation, Func`2 verifySucceeded, CancellationToken cancellationToken)
   at Umbraco.Commerce.Cms.Web.Api.Management.Controllers.UpdateOrderManagementApiController.UpdateOrderById(StoreSessionDto session, Guid orderId, UpdateOrderRequestDto requestDto, OptionsDto optionsDto, CancellationToken token)
   at lambda_method2261(Closure, Object)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableObjectResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
... more lines available

Steps to reproduce

The error related to saving an order happened when I tried to change status of an order to cancelled from new.

The other errors seem to happen when the payment provider callback happens.

Expected result / actual result

No response

Dependencies

Umbraco v15.4.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions