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 7556991
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T12:00:35+00:00 2026-05-30T12:00:35+00:00

I have a solution that uses EF Code First. I recently upgraded all my

  • 0

I have a solution that uses EF Code First. I recently upgraded all my projects to EF 4.3 (using NuGet). However, afterwards I discovered that another package (EFHooks) doesn’t work with that version.

So I decided to roll back the version to 4.1.10715.0 which is the latest version that I could get to work with EFHooks.

When I compile the application, everything compiles fine. I can run all my tests and they pass (unit tests, integration tests, database tests, etc.). However, when I run the web site (mvc 3), it gives me a runtime error stating

Could not load file or assembly ‘EntityFramework’ or one of its
dependencies. … Version=4.3.0.0 etc etc

I’ve checked all my packages.config, and my web.config. I’ve checked all the referenced dlls versions. Everything is lined up with 4.1.

I can’t find anywhere in my solution that uses anything for 4.3, yet the site is trying to find it because of something.

Is there something in my rollback that I missed?

  • 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-05-30T12:00:36+00:00Added an answer on May 30, 2026 at 12:00 pm

    It turns out that the real error was that I didn’t have my DBContext wired up to my IoC container. In this case, Ninject.

    So when the DBContext was requested the IoC container errored out, because it didn’t have one wired up to give to the application.

    I do not understand why it gave me the error that it did, but for anyone going through the same steps, I hope this might prove useful if you find yourself in the same place that I did.

    So, all the code I needed to add was basically just the following:

    Bind<ICustomSession>().To<EFDBContext>().InRequestScope();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a client that uses a point-of-sale solution involving an Access database for
Hi I have a Visual Studio solution and an ASP.NET MVC project that uses
I have a solution that is deployed using ClickOnce. It consists of an application,
I have a solution that contains a good deal of projects, I would like
I have a solution that is missing a lot of code coverage. I need
I have a solution that contains two projects. One project is an ASP.NET Web
We have a Sharepoint solution that uses AJAX. The button that triggers this is
I have a solution that is source controlled with Subversion and AnkhSVN in Visual
I have a solution that is being referenced by a MSBuild project. In the
I have a solution that I am trying to build in Visual Studio which

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.