Running tests against assemblies that were built in older versions of the CLR produces a runtime error of "Mixed mode assembly is built against version 'v1.1.4322' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information.". This can be fixed by adding the following entry to the application configuration files for VisualNunitRunner.exe and VisualNunitRunner32.exe :
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0"/>
</startup>
</configuration>
The reasoning behind this is detailed here:
http://social.msdn.microsoft.com/Forums/pl-PL/vcgeneral/thread/5d1186ec-ad55-4929-b1e4-8806cdc758af
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
I am having the same issue (since one of the 3rd party dll we are using was built using v1.1). But i am not sure where and how to add the configuration files? i have installed Visual NUnit using nuget and it will install it in the following location \AppData\Local\Microsoft\VisualStudio\10.0\Extensions\Tommi Laukkanen %2F BubbleCloud.org\Visual Nunit 2010\1.2.4.
Also create two config files and dropped into this folder, but no luck.
The same issue was happening with Nunit gui, so I did the same fix to the nunit config files and I was able to successfully run the tests using nunit.
Any help in this aspect will be greatly appreciated.
Last edit: Anonymous 2013-11-20