Other than "Don't use MSTest" ?

Seriously, ensure that the correct version of the assembly is being
referenced throughout your solution (both your production project(s) and
your test project(s)).  Usually this error is the result of an errant
reference to a different version of the assembly in at least one of your
projects and the build-order is controlling which of the several
"copy-local=true" versions of the assembly is being copied into the
TestResults folder (last one in wins!) when you run the build/compile/test
process.

Hope this helps,

Steve Bohlen
[email protected]
http://blog.unhandled-exceptions.com
http://twitter.com/sbohlen


On Fri, Jul 1, 2011 at 2:22 PM, Matteo Migliore
<[email protected]>wrote:

> Hi!
>
> I run on the server unit tests, on local machines (all) they work.
>
> Here the exception:
> Unit Test Adapter threw exception:
> Type is not resolved for member 'NHibernate.HibernateException,NHibernate,
> Versi
> on=3.1.0.4000, Culture=neutral, PublicKeyToken=aa95f207798dfdb4'..
>
> There are all the references in the TestResults folder.
>
> Any idea?
>
> Thanks!
>

Reply via email to