• Register
0 votes
43 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

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 81 views
81 views
Problem : I am facing below error “System.security.securityexception: that assembly does not allow partially trusted callers.” Is it possible to make my Library to allow partially trusted callers?
asked Feb 17 mphil 2.3k points
1 vote
1 answer 309 views
309 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 Martin K 6.6k points
0 votes
2 answers 158 views
158 views
Problem : Below is the wrong form: int &z = 12; Following is the correct form: int y; int &r = y; Question: Why is a first code wrong? What is a "meaning" of a below error? “Invalid initialization of non-const reference of type from an rvalue of type”
asked Jan 24 jwilliam 3.9k points
0 votes
1 answer 28 views
28 views
Problem: When i am trying run an application in JBOSS 4.0 via eclipse 3.3 i am getting the below exception: Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath. Perhaps JAVA_HOME does not point to the JDK I had to set the environment variables ... why this error is coming and how to fix. I am able to execute the same application with tomcat 5.0 any one can help me plz
asked Mar 23 LizzyM 6.1k points