• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 307
  • Last Modified:

ASP .NET Assembly Reference Mismatch

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
Mare22
Asked:
Mare22
  • 3
1 Solution
 
Vikram Singh SainiSoftware Engineer cum AD DeveloperCommented:
0
 
FarWestCommented:
try to change the target framework, in compile option
0
 
Mare22Author Commented:
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
 
Mare22Author Commented:
The suggested solution did not work for me.
0
 
Mare22Author Commented:
The previously suggested solutions did not work for me.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now