Solved

ASP .NET  Assembly Reference Mismatch

Posted on 2011-09-02
5
294 Views
Last Modified: 2012-05-12
I am running a web application in Visual Studio 2010.  I recently started to get the assembly reference mismatch exception at runtime:

Could not load file or assembly '...' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference.

It's looking for an assemply with version Version=3.0.98.0.  The assemply I that I have locally has a version number 3.0.102.0.  Tried to remove the old references and rebuild, but it does not go away.

I had similar issues previously, and removing old references and rebuilding helped in the past, but not now.

How can I fix this?

Thank you.

 
0
Comment
Question by:Mare22
  • 3
5 Comments
 
LVL 16

Expert Comment

by:Vikram Singh Saini
ID: 36477041
0
 
LVL 12

Expert Comment

by:FarWest
ID: 36477064
try to change the target framework, in compile option
0
 

Accepted Solution

by:
Mare22 earned 0 total points
ID: 36481598
vs00saini,

I did read that article - it's one of the first that comes up.  It deals with some special cases, limke Fusion.  Did not help.

fryezz, good thinking, thank you, I did check the target framework, but it was not my issue.

It seems that the dll under question did not get copied to bin during compilation.  All I had to do was to manually delete everything from bin and recompile.
0
 

Author Closing Comment

by:Mare22
ID: 36508914
The suggested solution did not work for me.
0
 

Author Comment

by:Mare22
ID: 36481624
The previously suggested solutions did not work for me.
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

I have developed many web applications with asp & asp.net and to add and use a dropdownlist was always a very simple task, but with the new asp.net, setting the value is a bit tricky and its not similar to the old traditional method. So in this a…
IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now