Solved

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

Posted on 2015-01-08
1
1,417 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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

757 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

18 Experts available now in Live!

Get 1:1 Help Now