umbraco / Umbraco.Commerce.Issues

18 stars 2 forks source link

Issue running on Umbraco 11 RC4 #396

Closed rhamiltonDMNS closed 1 year ago

rhamiltonDMNS commented 1 year ago

Issue running Vendr -Version 3.0.4 on Umbraco 11 RC4

Perhaps Umbraco made a change on RecurringHostedServiceBase? - Got this error on Site start-up. Builds and compiles fine but won't run.

System.MissingMethodException HResult=0x80131513 Message=Method not found: 'Void Umbraco.Cms.Infrastructure.HostedServices.RecurringHostedServiceBase..ctor(System.TimeSpan, System.TimeSpan)'. Source=Vendr.Umbraco StackTrace: at Vendr.Umbraco.Scheduling.TelemetryDataPinger..ctor(TimeSpan delayMilliseconds, TimeSpan periodMilliseconds, ICacheAccessor cacheAccessor, StoreDomainTrackerService storeDomainTracker, ILogger1 logger) at Vendr.Extensions.VendrUmbracoBuilderExtensions.<>c.<AddVendr>b__0_3(IServiceProvider services) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite callSite, RuntimeResolverContext context) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor2.VisitCallSite(ServiceCallSite callSite, TArgument argument) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitIEnumerable(IEnumerableCallSite enumerableCallSite, RuntimeResolverContext context) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite callSite, RuntimeResolverContext context) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor2.VisitCallSite(ServiceCallSite callSite, TArgument argument) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope) at Microsoft.Extensions.DependencyInjection.ServiceProvider.CreateServiceAccessor(Type serviceType) at System.Collections.Concurrent.ConcurrentDictionary2.GetOrAdd(TKey key, Func`2 valueFactory) at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType, ServiceProviderEngineScope serviceProviderEngineScope) at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType) at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider) at Microsoft.Extensions.Hosting.Internal.Host.d12.MoveNext() at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.d4.MoveNext() at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.d__4.MoveNext() at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.Run(IHost host) at PassEdgeAppWebsite.Program.Main(String[] args) in D:\development\DMNS\MySite\MySite\Program.cs:line 6

============================================================================

An error occurred while starting the application. MissingMethodException: Method not found: 'Void Umbraco.Cms.Infrastructure.HostedServices.RecurringHostedServiceBase..ctor(System.TimeSpan, System.TimeSpan)'. Vendr.Umbraco.Scheduling.TelemetryDataPinger..ctor(TimeSpan delayMilliseconds, TimeSpan periodMilliseconds, ICacheAccessor cacheAccessor, StoreDomainTrackerService storeDomainTracker, ILogger logger)

MissingMethodException: Method not found: 'Void Umbraco.Cms.Infrastructure.HostedServices.RecurringHostedServiceBase..ctor(System.TimeSpan, System.TimeSpan)'. Vendr.Umbraco.Scheduling.TelemetryDataPinger..ctor(TimeSpan delayMilliseconds, TimeSpan periodMilliseconds, ICacheAccessor cacheAccessor, StoreDomainTrackerService storeDomainTracker, ILogger logger) Vendr.Extensions.VendrUmbracoBuilderExtensions+<>c.b__0_3(IServiceProvider services) Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor<TArgument, TResult>.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument) Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite callSite, RuntimeResolverContext context) Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor<TArgument, TResult>.VisitCallSite(ServiceCallSite callSite, TArgument argument) Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitIEnumerable(IEnumerableCallSite enumerableCallSite, RuntimeResolverContext context) Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor<TArgument, TResult>.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument) Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite callSite, RuntimeResolverContext context) Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor<TArgument, TResult>.VisitCallSite(ServiceCallSite callSite, TArgument argument) Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope) Microsoft.Extensions.DependencyInjection.ServiceProvider.CreateServiceAccessor(Type serviceType) System.Collections.Concurrent.ConcurrentDictionary<TKey, TValue>.GetOrAdd(TKey key, Func<TKey, TValue> valueFactory) Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType, ServiceProviderEngineScope serviceProviderEngineScope) Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType) Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider) Microsoft.Extensions.Hosting.Internal.Host.StartAsync(CancellationToken cancellationToken) Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token) Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token) Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.Run(IHost host) PassEdgeAppWebsite.Program.Main(string[] args) in Program.cs + => CreateHostBuilder(args)

Show raw exception details .NET 7.0.0 X64 v7.0.0.0 | Microsoft.AspNetCore.Hosting version 7.0.0+bb01bbf4433e27289b99001b7de6a582879d1835 | Microsoft Windows 10.0.19043 | Need help?

mattbrailsford commented 1 year ago

Looks like we are using an obsolete method signature that got removed in v11. There are 2 new builds on our unstable feed at https://nuget.outfield.digital/unstable/vendr/v3/index.json 3.0.5-beta0004 which is still compiled against v10 and .net6.0 but should work, and a 3.1.0-rc0005 which should be compiled against Umbraco v11-rc4

If you can give either of those a try it would be good to know if this resolves the issue for you.

rhamiltonDMNS commented 1 year ago

Thanks Matt! I can confirm that the 3.0.5-beta0004 release does address & fix this issue. I also tested it against version 11.1.0-rc.preview.10 and it's great there too. I have not tried any of the Vendr functionality yet, but the site now runs and I can see all Vendr data types correctly.