• Register
0 votes
64 views

Problem :

I am trying to run some of the unit tests in the C# Windows Forms application (Visual Studio 2005), however I am facing the below error :

System.IO.FileLoadException: Could not load file or assembly 'Utility, Version=1.2.0.200, Culture=neutral, PublicKeyToken=764d581291d764f7' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)**

When I try to look in my references, and I can only have the reference to Utility version 1.2.0.203.

Any pointers on how can I figure out what is trying to reference the old version of my DLL file?

6 5 3
7,540 points

Please log in or register to answer this question.

1 Answer

0 votes

Solution :

First, try to use the Windows file search to search the hard drive for the assembly (.dll). Once you get the list of results, please do View->Choose Details. and after that check "File Version". This will help you in displaying the version number in the list of results, so you can clearly see where the old version is coming from.

Second, try to check the GAC to know what version is listed there. This Microsoft article states that the assemblies found in your GAC are not copied locally during the build, so you must need to remove your old version before doing a rebuild all.

Hope this solves your issue.

9 7 4
38,600 points

Related questions

0 votes
1 answer 2 views
2 views
Problem: Hello ... Can anyone tell me that why I got this error? Could not load file or assembly or one of its dependencies
asked Apr 3 Ifra 24.4k points
0 votes
1 answer 6 views
6 views
Problem: i get errors like these: The type or namespace name `NetworkBehaviour' could not be found. Are you missing a using directive or an assembly reference? The type or namespace name UI' does not exist in the namespace UnityEngine'. Are you missing an ... name `IPointerUpHandler' could not be found. Are you missing a using directive or an assembly reference? Any help will be appreciated.
asked Mar 16 ummesalma 25.2k points
0 votes
1 answer 4 views
4 views
Problem: Getting “type or namespace name could not be found” but everything seems ok?
asked Mar 16 ummesalma 25.2k points
0 votes
1 answer 20 views
20 views
Problem : the engine "node" is incompatible with this module.
asked Feb 20 Shovo210 14k points
0 votes
1 answer 6 views
6 views
Problem: I have a Section of code that is compiling with the error of "Not all code paths Return a Value" I have no idea how to fix this. Any Ideas?
asked Mar 16 ummesalma 25.2k points
0 votes
1 answer 4 views
4 views
problem: can anybody help me to know you reference columns individually using the ____ element. ?
asked Apr 5 ashik 12.9k points
0 votes
1 answer 11 views
11 views
Problem: Why I have got this issue>`data` and `reference` should be factors with the same levels?
asked Apr 3 ashik 12.9k points
0 votes
1 answer 2 views
2 views
Problem: please to solve it ... pass array as reference c++
asked Apr 4 Ifra 24.4k points
0 votes
1 answer 2 views
2 views
Problem: I'm using C++ (not C++11). I need to make a pointer to a function inside a class. But there's an error: "Reference to nonstatic member function must be called". What should I do to make a pointer to a member of MyClass?
asked Mar 30 ummesalma 25.2k points
1 vote
1 answer 1.7K views
1.7K views
Problem: I am very new to Programming. I want to compile my recently written program it is called myes3 but when I try to write from the terminal: gcc myes3.c -o myes3 I always face below error message: /usr/lib/gcc/i686-linux-gnu/4.4.5/../../. ... collect2: ld returned 1 exit status I have very elementary knowledge of programming so unable to fix above error. Please help me in fixing above error.
asked May 27, 2020 Martin K 6.6k points