Close

Plugin, nopcommerce, or other bug?

chrismcbride76
10 years ago
#3084 Quote
Avatar
  • 7
I updated to the latest nop ajax filter, and have had my site crash twice in the past two days.  I've been able to resolve it by re-uploading all of the files in the 'bin' folder.  I suspect that there could be a bug in nopcommerce 3.0, but the site hasn't had any problems until I updated the ajax filter, and the ajax filter is called out in the stack trace.  Any ideas?

Thanks,
Chris

Here's the stack trace:

Could not load file or assembly 'AutoMapper, Version=2.0.0.0, Culture=neutral, PublicKeyToken=be96cd2c38ef1005' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
  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.IO.FileLoadException: Could not load file or assembly 'AutoMapper, Version=2.0.0.0, Culture=neutral, PublicKeyToken=be96cd2c38ef1005' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

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.  

Assembly Load Trace: The following information can be helpful to determine why the assembly 'AutoMapper, Version=2.0.0.0, Culture=neutral, PublicKeyToken=be96cd2c38ef1005' could not be loaded.



WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

  

Stack Trace:



[FileLoadException: Could not load file or assembly 'AutoMapper, Version=2.0.0.0, Culture=neutral, PublicKeyToken=be96cd2c38ef1005' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
   SevenSpikes.Nop.Framework.DependancyRegistrar.BaseDependancyRegistrar7Spikes.CreateMvcModelMap() +0
   Nop.Core.Infrastructure.DependencyManagement.<>c__DisplayClass1.<Configure>b__0(ContainerBuilder x) +631
   Nop.Core.Infrastructure.DependencyManagement.ContainerConfigurer.Configure(IEngine engine, ContainerManager containerManager, EventBroker broker, NopConfig configuration) +431
   Nop.Core.Infrastructure.NopEngine.InitializeContainer(ContainerConfigurer configurer, EventBroker broker, NopConfig config) +222
   Nop.Core.Infrastructure.EngineContext.CreateEngineInstance(NopConfig config) +227
   Nop.Core.Infrastructure.EngineContext.Initialize(Boolean forceRecreate) +191
   Nop.Web.MvcApplication.Application_Start() +203

[HttpException (0x80004005): Could not load file or assembly 'AutoMapper, Version=2.0.0.0, Culture=neutral, PublicKeyToken=be96cd2c38ef1005' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
   System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +12864365
   System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +175
   System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +304
   System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +404
   System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +475

[HttpException (0x80004005): Could not load file or assem
Boyko
10 years ago
#3100 Quote
Avatar
  • Moderator
  • 1570
chrismcbride76 wrote:
I updated to the latest nop ajax filter ...
Any ideas?

Thanks,
Chris


Hi Chris,

When you updated the Ajax Filters did you update the Core plugin as well and restarted the application?
As described here:
http://www.nop-templates.com/t/How-To-Update-A-NopCommerce-Plugin.

I would suggest getting the very latest version from our web site and update as described in the article but if you use other plugins it would be good to update them too. Then uninstall and install the Ajax Filters and you shouldn't have any problems.

Thanks
Regards,
Nop-Templates.com Team