I’m facing a strange behaviour. I have an derived implementation of an .NET XmlSerializer looking like this
public class ASerializer : XmlSerializer
{
public ASerializer()
: base( typeof ( A ) ) {}
}
While instanciating an instance of this class within a MSTest an exception with the following message is thrown:
Initialization method 'ASerializerTest.Initialize' threw exception.
System.TypeLoadException: Could not load type 'ASerializer' from assembly 'AAssembly, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'..
Running the Test from ReSharper Runner succeeds. Any ideas on this topic?
Thanks,
MacX
CPU-Selection showed “Mixed Platforms”. Switched it to “Any CPU”.
Works like a charm now.
Many Thanks to Jonathan Dickinson for the hint.