Solved

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

Posted on 2015-01-08
1
1,681 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

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

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…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

726 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