Solved

Test fails with unable to find Microsoft.QualityTools.Testing.Fakes

Posted on 2015-01-08
1
1,481 Views
Last Modified: 2015-01-09
I'm using Visual Studio Premium 2013 and some tests are failing with this message:

Test Name:      My test:      
Test Source:      My test:
Test Outcome:      Failed
Test Duration:      0:00:00.1262976

Result Message:      
Test method MyTest  threw exception:
System.IO.FileLoadException: Could not load file or assembly 'Microsoft.QualityTools.Testing.Fakes, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
Result StackTrace:      
at MyTestMethod()
   at ... etc

The project reference is to version 12, I don't have version 11 installed - I can't find anywhere that is telling it to look for version 11 - any ideas why it would be looking for version 11 and causing this error?
0
Comment
Question by:purplesoup
1 Comment
 
LVL 17

Accepted Solution

by:
Chris Millard earned 500 total points
ID: 40537681
I'm not familiar with this error, but someone at this thread http://stackoverflow.com/questions/27741115/need-a-work-around-microsoft-qualitytools-testing-fakes suggests:-

Re-referencing the test assembly and recreating the Fakes assembly sorted the issue for me.
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
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.
A company’s greatest vulnerability is their email. CEO fraud, ransomware and spear phishing attacks are the no1 threat to a company’s security. Cybercrime is responsible for the largest loss of money to companies today with losses projected to r…

929 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

9 Experts available now in Live!

Get 1:1 Help Now