2.20 to 2.30 - Unable to load one or more of the requested types.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
12 years ago
Hi,
this is what I get after updating from 2.20 to 2.30.
Any help?

Server Error in '/' Application.

Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.]
   System.Reflection.RuntimeModule.GetTypes(RuntimeModule module) +0
   System.Reflection.RuntimeModule.GetTypes() +4
   System.Reflection.Assembly.GetTypes() +78
   Nop.Core.Infrastructure.AppDomainTypeFinder.FindClassesOfType(Type assignTypeFrom, IEnumerable`1 assemblies, Boolean onlyConcreteClasses) in f:\Own\NopCommerce\Sources\src\Libraries\Nop.Core\Infrastructure\AppDomainTypeFinder.cs:112

[Exception: Could not load file or assembly 'Autofac, Version=2.5.1.827, Culture=neutral, PublicKeyToken=17863af14b0044da' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
]
   Nop.Core.Infrastructure.AppDomainTypeFinder.FindClassesOfType(Type assignTypeFrom, IEnumerable`1 assemblies, Boolean onlyConcreteClasses) in f:\Own\NopCommerce\Sources\src\Libraries\Nop.Core\Infrastructure\AppDomainTypeFinder.cs:144
   Nop.Core.Infrastructure.AppDomainTypeFinder.FindClassesOfType(Boolean onlyConcreteClasses) in f:\Own\NopCommerce\Sources\src\Libraries\Nop.Core\Infrastructure\AppDomainTypeFinder.cs:92
   Nop.Core.Infrastructure.DependencyManagement.<>c__DisplayClass3.<Configure>b__0(ContainerBuilder x) in f:\Own\NopCommerce\Sources\src\Libraries\Nop.Core\Infrastructure\DependencyManagement\ContainerConfigurer.cs:36
   Nop.Core.Infrastructure.DependencyManagement.ContainerManager.UpdateContainer(Action`1 action) in f:\Own\NopCommerce\Sources\src\Libraries\Nop.Core\Infrastructure\DependencyManagement\ContainerManager.cs:161
   Nop.Core.Infrastructure.DependencyManagement.ContainerConfigurer.Configure(IEngine engine, ContainerManager containerManager, EventBroker broker, NopConfig configuration) in f:\Own\NopCommerce\Sources\src\Libraries\Nop.Core\Infrastructure\DependencyManagement\ContainerConfigurer.cs:34
   Nop.Core.Infrastructure.NopEngine.InitializeContainer(ContainerConfigurer configurer, EventBroker broker, NopConfig config) in f:\Own\NopCommerce\Sources\src\Libraries\Nop.Core\Infrastructure\NopEngine.cs:57
   Nop.Core.Infrastructure.NopEngine..ctor(EventBroker broker, ContainerConfigurer configurer) in f:\Own\NopCommerce\Sources\src\Libraries\Nop.Core\Infrastructure\NopEngine.cs:32
   Nop.Core.Infrastructure.NopEngine..ctor() in f:\Own\NopCommerce\Sources\src\Libraries\Nop.Core\Infrastructure\NopEngine.cs:24
   Nop.Core.Infrastructure.EngineContext.CreateEngineInstance(NopConfig config) in f:\Own\NopCommerce\Sources\src\Libraries\Nop.Core\Infrastructure\EngineContext.cs:55
   Nop.Core.Infrastructure.EngineContext.Initialize(Boolean forceRecreate) in f:\Own\NopCommerce\Sources\src\Libraries\Nop.Core\Infrastructure\EngineContext.cs:24
   Nop.Web.MvcApplication.Application_Start() in f:\Own\NopCommerce\Sources\src\Presentation\Nop.Web\Global.asax.cs:56

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1


Thanks in advance,
Francesco
12 years ago
update: renaming AutofacContrib.Startable.dll (found here as solution) now gives the following:
Invalid object name 'dbo.ScheduleTask'.
12 years ago
Any code or plugins that refer to AutoFac need to have their references changed, as nopCommerce 2.3 uses a newer version of AutoFac which is: 2.5.2.830.

Renaming this assembly seems wrong.

As to the invalid object name ScheduledTask, did you run and upgrade script to the database? You need to upgrade your database from 2.2 to 2.3, which includes a new table ScheduledTask.

I hope this is useful!
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.