Fix: Exception "Mixed mode assembly is built against version ‘v2.0.50727’ of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information.", when code is executed in a Microsoft Visual Studio 2012 test project.

When using an old version of LeadTools I encountered an exception during the execution of a Microsoft Visual Studio 2012 test. Mixed mode assembly is built against version ‘v2.0.50727’ of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information. This error was fixed following the …

How to change the *.mdf and *.ldf location of an online Microsoft SQL Server LocalDb database in a Microsoft Visual Studio 2010 test.

For testing purposes it is possible to copy a new localdb database to your output directory and start using this localdb database. For more information see my previous post: https://www.roelvanlisdonk.nl/?p=2607 It is possible that a previous tests run did not cleanup it’s copy of the localdb database. Now if you …

Resolving: Validator.TryValidateObject always returns true in a UnitTest, when using a MetadataType class in Entity Framework 4

When you use a metadata class in Entity Framework the registration between the entity and the metadata class is not registered for all Microsoft Visual Studio Project types (the "test project class library" for example). I found the solution at: http://stackoverflow.com/questions/2657358/net-4-rtm-metadatatype-attribute-ignored-when-using-validator. It demonstrates registring all metadata classes in an assembly. …