1

Resolved

No assembly binding redirect for autofac

description

Whilst there is an assembly binding redirect in web.config for NHibernate, so that if a module is built against a slightly older version of NHibernate, the module can still be used in subsequent Orchard versions, there is no such assembly binding redirect for Autofac. Therefore a module which references autofac and built for 1.5 causes the whole site to crash in 1.6:

2012-10-03 13:21:21,684 [10] Orchard.Environment.DefaultOrchardHost - A tenant could not be started: Default
System.IO.FileLoadException: Could not load file or assembly 'Autofac, Version=2.6.1.841, 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)
File name: 'Autofac, Version=2.6.1.841, Culture=neutral, PublicKeyToken=17863af14b0044da'

comments

sebastienros wrote Oct 3, 2012 at 6:46 PM

Fixed in 34ecea1a20e5