• Register
0 votes

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=, 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

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

1 vote
1 answer 921 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
0 votes
2 answers 356 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, 2020 jwilliam 3.9k points
0 votes
1 answer 130 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, 2020 mphil 2.3k points
0 votes
1 answer 53 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, 2020 LizzyM 6.1k points
0 votes
1 answer 62 views
Problem: hello fellow developers, I am working on a Firebase messaging application on my Xcode 11, and the Swift version is 5. I really need your help as I am stuck on an issue and this is giving me a headache. Kindly help me to resolve this issue.
asked Oct 12, 2020 SapperIt 1.2k points
0 votes
1 answer 43 views
Problem : Unable to find solution for bellow error the type or namespace name `unityeditor' could not be found. are you missing an assembly reference?
asked Nov 7, 2019 peterlaw 6.9k points
0 votes
1 answer 94 views
Problem : I am getting bellow compiler error error: could not find or load main class com.sun.tools.javac.main
asked Nov 5, 2019 peterlaw 6.9k points
0 votes
1 answer 6 views
Problem: Hi there! I am trying to run following program: using System; using System.IO; namespace ConsoleApp2 { class Program { public static void Main(string[] args) { FileStream fs = File.Open("e:\\file.txt", FileMode.Open); Console.ReadKey(); } ... .IOFileNotFoundException could not load file or assembly I want to know why these exceptions are thrown by the compiler and how to resolve them?
asked Dec 4, 2020 Code Learner 5.5k points
0 votes
1 answer 21 views
Problem: I have tried to upload my website to a server for the very first time. My website was working fine at my local host so I tried to upload everything from my localhost to the server and then I also changed the connection string. But still I ... dependencies. The system cannot find the file specified. at RouteDebug.PreApplicationStart.Start() What should I do to fix the above server error?
asked Aug 26, 2020 Raphael Pacheco 4.9k points