Upgrading to 4.0. Error when running the project. The type initializer for 'Nop.Services.Tasks.TaskThread' threw an exception.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
6 years ago
I get the following error message when running the website.

Full stack here:
The type initializer for 'Nop.Services.Tasks.TaskThread' threw an exception. ---> Autofac.Core.DependencyResolutionException: An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = WebStoreContext (ReflectionActivator), Services = [Nop.Core.IStoreContext], Lifetime = Autofac.Core.Lifetime.CurrentScopeLifetime, Sharing = Shared, Ownership = OwnedByLifetimeScope ---> An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = StoreService (ReflectionActivator), Services = [Nop.Services.Stores.IStoreService], Lifetime = Autofac.Core.Lifetime.CurrentScopeLifetime, Sharing = Shared, Ownership = OwnedByLifetimeScope ---> An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = RedisCacheManager (ReflectionActivator), Services = [Nop.Core.Caching.IStaticCacheManager], Lifetime = Autofac.Core.Lifetime.CurrentScopeLifetime, Sharing = Shared, Ownership = OwnedByLifetimeScope ---> An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = RedisConnectionWrapper (ReflectionActivator), Services = [Nop.Core.Caching.IRedisConnectionWrapper], Lifetime = Autofac.Core.Lifetime.RootScopeLifetime, Sharing = Shared, Ownership = OwnedByLifetimeScope ---> An exception was thrown while invoking the constructor 'Void .ctor(Nop.Core.Configuration.NopConfig)' on type 'RedisConnectionWrapper'. ---> Keyword '"host' is not supported (See inner exception for details.) (See inner exception for details.) (See inner exception for details.) (See inner exception for details.) (See inner exception for details.) ---> Autofac.Core.DependencyResolutionException: An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = StoreService (ReflectionActivator), Services = [Nop.Services.Stores.IStoreService], Lifetime = Autofac.Core.Lifetime.CurrentScopeLifetime, Sharing = Shared, Ownership = OwnedByLifetimeScope ---> An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = RedisCacheManager (ReflectionActivator), Services = [Nop.Core.Caching.IStaticCacheManager], Lifetime = Autofac.Core.Lifetime.CurrentScopeLifetime, Sharing = Shared, Ownership = OwnedByLifetimeScope ---> An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = RedisConnectionWrapper (ReflectionActivator), Services = [Nop.Core.Caching.IRedisConnectionWrapper], Lifetime = Autofac.Core.Lifetime.RootScopeLifetime, Sharing = Shared, Ownership = OwnedByLifetimeScope ---> An exception was thrown while invoking the constructor 'Void .ctor(Nop.Core.Configuration.NopConfig)' on type 'RedisConnectionWrapper'. ---> Keyword '"host' is not supported (See inner exception for details.) (See inner exception for details.) (See inner exception for details.) (See inner exception for details.) ---> Autofac.Core.DependencyResolutionException: An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = RedisCacheManager (ReflectionActivator), Services = [Nop.Core.Caching.IStaticCacheManager], Lifetime = Autofac.Core.Lifetime.CurrentScopeLifetime, Sharing = Shared, Ownership = OwnedByLifetimeScope ---> An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = RedisConnectionWrapper (ReflectionActivator), Services = [Nop.Core.Caching.IRedisConnectionWrapper], Lifetime = Autofac.Core.Lifetime.RootScopeLifetime, Sharing = Shared, Ownership = OwnedByLifetimeScope ---> An exception was thrown while invoking the constructor 'Void .ctor(Nop.Core.Configuration.NopConfig)' on type 'RedisConnectionWrapper'. ---> Keyword '"host' is not supported (See inner exception for details.) (See inner exception for details.) (See inner exception for details.) ---> Autofac.Core.DependencyResolutionException: An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = RedisConnectionWrapper (ReflectionActivator), Services = [Nop.Core.Caching.IRedisConnectionWrapper], Lifetime = Autofac.Core.Lifetime.RootScopeLifetime, Sharing = Shared, Ownership = OwnedByLifetimeScope ---> An exception was thrown while invoking the constructor 'Void .ctor(Nop.Core.Configuration.NopConfig)' on type 'RedisConnectionWrapper'. ---> Keyword '"host' is not supported (See inner exception for details.) (See inner exception for details.) ---> Autofac.Core.DependencyResolutionException: An exception was thrown while invoking the constructor 'Void .ctor(Nop.Core.Configuration.NopConfig)' on type 'RedisConnectionWrapper'. ---> Keyword '"host' is not supported (See inner exception for details.) ---> System.ArgumentException: Keyword '"host' is not supported
6 years ago
Bump
5 years ago
tell me  solution please
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.