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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T01:55:51+00:00 2026-06-14T01:55:51+00:00

I have a Visual Studio 2012 solution that consists of both a web application

  • 0

I have a Visual Studio 2012 solution that consists of both a web application and some client-side code. The way the application is structured, there is a shared class library used for data access.

The client-side code needs to target .NET 4, since I’ll be deploying that to machines that may not have .NET 4.5. Since I control the web server end, I can assume .NET 4.5 for that.

Now, the data-access library needs to be used by both the client and server end, and so it needs to use only .NET 4. However, this is causing me unexpected problems.

The data-access library uses Entity Framework. Being .NET 4, it uses EF version 4.4. However, the web application also needs to reference the Entity Framework, and being .NET 4.5 it uses EF version 5.0.

This results in an (intermittent) error when I try to run the application. (I’m starting both the website and the client code from VS2012, on the same machine).

The website works OK if I just enter a URL into the address bar on the browser – its able to use the data-access library to fetch data without problems. However, when I use the client application, it (usually, not always!) gets a server error back from the web end saying that it (the web end) can’t load the Entity Framework assembly:

Could not load file or assembly ‘EntityFramework, Version=5.0.0.0, …
The located assembly’s manifest definition does not match the assembly reference.

I’m not sure whether this is only a problem because I’m running in the debugger, on the same machine, or whether this is something that’s going to affect my application once deployed.

Am I doing something crazy here, or should this work OK?

  • 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-14T01:55:53+00:00Added an answer on June 14, 2026 at 1:55 am

    For anyone attempting this: it does work so long as you do a “build solution” prior to hitting “run” (which in my case starts the client-side application in debug mode, but starts the web app without debugging). To debug the web app too, I need to explicitly start that (right-click, debug), and then start the client-side app (right-click, debug). Again, a “build solution” is required every time (and occasionally a “rebuild”).

    EDIT: aaaannnndd… suddenly it stopped working. However, I figured out that when I run the client-side application within VS, it builds/updates the EF DLL in the web project bin directory with the one used by the client app, which causes the version-mismatch as soon as the website is accessed, because the website is expecting the later version. To resolve this, I now have a batch file that copies in the correct version of the EF DLL into the website bin directory. So, I can start the client application, then execute my batch file, then start the website. A pain, but at least it now works reliably.

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

Sidebar

Related Questions

Visual Studio 2012, TFS, Windows 7 We have a C# solution that has 4
Started using Visual Studio 2012 RC since yesterday, We have one WCF solution. Whenever
I am building an application in C# visual studio 2012 RC. I have to
I have a Visual Studio 2012 Solution with twelve Solution Configurations. Each Solution Configuration
I have a C++ solution in Visual Studio (2012 Express) containing 15 projects. 1
I have a package that is developed in SSIS 2012 using Visual Studio 2010.
I have my ASP.NET site generated from Web Forms template in Visual Studio 2012.
I have a Visual Studio 2012 solution containing three projects. A simple dependency graph
I have a Visual Studio 2012 (RC) solution bound to a CodePlex server. However,
I have visual studio 2010 at home and have developed a web application. I

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.