Unit Test Adapter threw exception:

Topics: Logging Application Block
Jul 9, 2011 at 12:04 AM

I just started using the Logging Application Block and came across a problem.

I get the following error when I unit test (msTest, vs 2010) a class that uses the logger:


Unit Test Adapter threw exception: Type is not resolved for member 'Microsoft.Practices.ServiceLocation.ActivationException,Microsoft.Practices.ServiceLocation, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35'..

The class (and logging) works fine out side of the test framework. Any ideas what to do?

Jul 11, 2011 at 2:45 AM


I don't have an idea on this one as I'm afraid this is more of an MsTest question. You can ask this to MsTest forum to get better answer. You can also check the suggestion on this link and see if it solves the issue.


Noel Angelo Bolasoc
Global Technologies and Solutions
Avanade, Inc.