I'm trying to update plugin from version 3.90 to 4.0 but when I try to install it I get this error:
"No constructor was found that had all the dependencies satisfied."
"Nop.Core.NopException: No constructor was found that had all the dependencies satisfied. ---> Autofac.Core.Registration.ComponentNotRegisteredException: The requested service 'System.Web.HttpContextBase' has not been registered. To avoid this exception, either register a component to provide the service, check for service registration using IsRegistered(), or use the ResolveOptional() method to resolve an optional dependency.
at Autofac.ResolutionExtensions.ResolveService(IComponentContext context, Service service, IEnumerable`1 parameters)
at Autofac.ResolutionExtensions.Resolve(IComponentContext context, Type serviceType, IEnumerable`1 parameters)
at Autofac.ResolutionExtensions.Resolve(IComponentContext context, Type serviceType)
at Autofac.Extensions.DependencyInjection.AutofacServiceProvider.GetRequiredService(Type serviceType)
at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)
at Nop.Core.Infrastructure.NopEngine.Resolve(Type type)
at Nop.Core.Infrastructure.NopEngine.<ResolveUnregistered>b__15_0(ParameterInfo parameter)
at System.Linq.Enumerable.WhereSelectArrayIterator`2.MoveNext()
at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
at Nop.Core.Infrastructure.NopEngine.ResolveUnregistered(Type type)
--- End of inner exception stack trace ---
at Nop.Core.Infrastructure.NopEngine.ResolveUnregistered(Type type)
at Nop.Core.Plugins.PluginDescriptor.Instance[T]()
at Nop.Core.Plugins.PluginDescriptor.Instance()
at Nop.Web.Areas.Admin.Controllers.PluginController.Install(IFormCollection form)"
Can someone help me with this?
Thanks,
Marija