Michael Stephenson

keeping your feet on premise while your heads in the cloud
posts - 257, comments - 277, trackbacks - 11

My Links

News

View Michael Stephenson's profile on BizTalk Blog Doc View Michael Stephenson's profile on LinkedIn

Twitter












Archives

Post Categories

Image Galleries

BizTalk

Mates

MsTest Error - Unit Test Adapter threw exception

Problem

I was trying to run my tests through the visual studio IDE, i was getting the following error:

Unit Test Adapter threw exception: System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information..

Symptoms

The following symptoms existed:

  • If i chose to debug the tests they all worked.  They only failed when doing a normal run
  • Some of my assemblies were signed

Solution

The solution is that in the code coverage section of the test run config i needed to supply a key to resign the assemblies

  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Print | posted on Monday, February 12, 2007 10:45 AM | Filed Under [ .net 2 ]

Feedback

Gravatar

# re: MsTest Error - Unit Test Adapter threw exception

Thank you, that was about 10000 times more helpful than anything else.
2/6/2012 8:44 AM | Graham
Post A Comment
Title:
Name:
Email:
Website:
Comment:
Verification:
 
 

Powered by: