Geeks With Blogs

News View Michael Stephenson's profile on BizTalk Blog Doc View Michael Stephenson's profile on LinkedIn
Michael Stephenson keeping your feet on premise while your heads in the cloud

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

Posted on Monday, February 12, 2007 10:45 AM .net 2 | Back to top


Comments on this post: MsTest Error - Unit Test Adapter threw exception

# re: MsTest Error - Unit Test Adapter threw exception
Requesting Gravatar...
Thank you, that was about 10000 times more helpful than anything else.
Left by Graham on Feb 06, 2012 8:44 AM

# re: MsTest Error - Unit Test Adapter threw exception
Requesting Gravatar...
Hi,

How to supply a key to resign the assemblies on VS2012 Please
Left by Xiaojuan Chen on Feb 20, 2014 9:53 PM

# re: MsTest Error - Unit Test Adapter threw exception
Requesting Gravatar...
if the string was not a valid date then i wanted to return the min date value.
Felicitaciones de Navidad 2016
Frases de Navidad 2016yg ygygyg
Left by DIPIKA on Dec 16, 2016 10:07 PM

# re: MsTest Error - Unit Test Adapter threw exception
Requesting Gravatar...
Left by mobdro tv app for pc on May 12, 2017 6:55 PM

Your comment:
 (will show your gravatar)


Copyright © Michael Stephenson | Powered by: GeeksWithBlogs.net