'Orchard 1.9.1 - Method not found: 'Void Autofac.RegistrationExtensions.RegisterModule(Autofac.ContainerBuilder, Autofac.Core.IModule)' Exception

I am currently trying to update my app with Orchard 1.9.1 version, but I face an exception upon running it.

The mentioned error is the following:

Method not found: 'Void Autofac.RegistrationExtensions.RegisterModule(Autofac.ContainerBuilder, Autofac.Core.IModule)'

Such exception is thrown at the Global.asax.cs file, in the following method:

private static IOrchardHost HostInitialization(HttpApplication application) {

   var host = OrchardStarter.CreateHost(MvcSingletons); <-- This is the point where the exception is thrown

    host.Initialize();

    // initialize shells to speed up the first dynamic query
    host.BeginRequest();
    host.EndRequest();

    return host; 

}

This exception has occurred due to the Autofac 3.5.0 version, and I have no idea why is occurring (well, I know why as is pointed out in the intellisense, stating that the method is missing but I can't find a way around to fix it).

Has anyone faced this particular issue? If yes, what are your recommendations?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source