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

  • SEARCH
  • Home
  • 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 8732877
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T09:31:32+00:00 2026-06-13T09:31:32+00:00

I am trying to use Autofac.WebApi with an ASP.NET MVC4 WebApi project. I installed

  • 0

I am trying to use Autofac.WebApi with an ASP.NET MVC4 WebApi project. I installed the latest Autofac and Autofac.WebApi using Nuget, but at runtime on application start when trying to register the GlobalConfiguration DependencyResolver, I get this exception thrown:

Could not load file or assembly ‘Autofac, Version=2.6.2.859,
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)

  • 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-13T09:31:33+00:00Added an answer on June 13, 2026 at 9:31 am

    The latest version of Autofac is 2.6.3 while Autofac.WebApi is on 2.6.2. It seems that Autofac.WebApi tries to call the specific version 2.6.2 but can’t find it. I had bindingRedirect in my web.config from any version to 2.6.3 but the problem was still happening.

    To solve the issue, I uninstalled both packages then installed Autofac specifying version 2.6.2 and Autofac.WebApi ignoring dependencies (otherwise it will uninstall old autofac and install 2.6.3).

    Install-Package autofac -version 2.6.2.859
    Install-Package autofac.WebApi -version 2.6.2.859 -IgnoreDependencies
    
    • 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 am trying use MySql and Entity Framework, using Connector/Net 6.1 with this as
I was trying use svn to find a checkin using svn log, but it
I'm trying to autowire up my application using Autofac. All is fine apart from
Trying to use Autofac to inject a log4net class into my controller, but I
I'm trying to use autofac in my project. So in Mef i could get
I am trying use gem tire to search in my application. I have tables
I am trying use filehelpers class builder but I am kinda confused on what
I have some questions regarding a bootstrapper class. I am using ASP.NET MVC 3
I'm using Autofac to implement IoC in my solution, But I am doubtful whether

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.