Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8802067
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T00:59:40+00:00 2026-06-14T00:59:40+00:00

Autofac.Integration.Web.Mvc dll in autofac version 2.3.2.632 had a class AutofacControllerFactory defined as public class

  • 0

Autofac.Integration.Web.Mvc dll in autofac version 2.3.2.632 had a class AutofacControllerFactory defined as

 public class AutofacControllerFactory : DefaultControllerFactory
    {
        public AutofacControllerFactory(IContainerProvider containerProvider);

        protected override IController GetControllerInstance(RequestContext context, Type controllerType);
        public override void ReleaseController(IController controller);
    }

The latest version of autofac (2.6.3.862) doesn’t have Autofac.Integration.Web.Mvc, but instead is has
Autofac.Integration.Mvc. However this dll doesnot have a AutofacControllerFactory class. The dll Autofac.Integration.Mvc has a class called AutofacDependencyResolver defined as

public class AutofacDependencyResolver : IDependencyResolver
{
    public AutofacDependencyResolver(ILifetimeScope container);
    public AutofacDependencyResolver(ILifetimeScope container, Action<ContainerBuilder> configurationAction);
    public AutofacDependencyResolver(ILifetimeScope container, ILifetimeScopeProvider lifetimeScopeProvider);
    public AutofacDependencyResolver(ILifetimeScope container, ILifetimeScopeProvider lifetimeScopeProvider, Action<ContainerBuilder> configurationAction);

    public ILifetimeScope ApplicationContainer { get; }
    public static AutofacDependencyResolver Current { get; }
    public ILifetimeScope RequestLifetimeScope { get; }

    public object GetService(Type serviceType);
    public IEnumerable<object> GetServices(Type serviceType);
}

What is the replacement for AutofacControllerFactory in the latest version of Autofac?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T00:59:42+00:00Added an answer on June 14, 2026 at 12:59 am

    There is no replacement for AutofacControllerFactory. Instead, use the DependencyResolver.

    The Autofac wiki has documentation on the new way to integrate with later versions of ASP.NET MVC. That wiki page includes a link to a sample application where you can see real working code.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to use Autofac and Autofac.Integrations.Web to register ASP.NET MVC controllers. I
I used the MVC integration from autofac like this: ... var container = builder.Build();
Autofac automatically generates factories for Func<T> ; I can even pass parameters. public class
I am using Autofac with ASP.NET MVC integration, all my controllers receive dependencies and
What Autofac version should I use for ASP.NET MVC 1.0. Also, What examples are
Using Autofac, I have the following scenario: public class MainClass { public delegate MainClass
I recently added Autofac 2.6.2 to one of my ASP.NET MVC projet. I'm facing
I've started using Autofac and want to scan some DLL's and get Autofac to
I notice the latest alpha of SolrNet supports Autofac integration. This wiki page discusses
I am using the Nuget MVC3 integration package for Autofac with MVC4. It mostly

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.