Solved

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

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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

772 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