MudassarRasool / mb-unit

Automatically exported from code.google.com/p/mb-unit
0 stars 0 forks source link

.NET Framework Initialization Error with Visual Studio 2010 and .NET 4 and Icarus #659

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I get the following error with Visual Studio 2010 and .NET 4 and Icarus (and 
similar errors with TeamCity).  The tests worked fine with Visual Studio 
2008.

  Gallio.Host.exe - .NET Framework Initialization Error
  Unable to find a version of the runtime to run this application.

I have had the error with both the latest released version and the latest 
development build:

GallioBundle-3.2.430.0-Setup-x64.msi

Original issue reported on code.google.com by thomas.b...@gmail.com on 10 May 2010 at 12:32

GoogleCodeExporter commented 8 years ago
I'm having the same problem. VS2010 builds all test projects against CLR  but 
the test runners are executing under CLR 2. I worked around the problem by 
adding the following to all of the Gallio.Host.*.exe.config files:

  <startup>
    <requiredRuntime version="v4.0.30319" />
  </startup>

There is a comment in the config files that states that in order to select the 
runtime version for the host process, the COMPLUS_Version environment variable 
is set (presumably by Icarus, matching the version of the framework required by 
the test assemblies). If this is the case, this functionality is probably 
broken.

Original comment by sieg...@gmail.com on 22 Jul 2010 at 7:18

GoogleCodeExporter commented 8 years ago
I should add I am using Gallio 3.2 build 517, with Windows 7 x64.

Original comment by sieg...@gmail.com on 22 Jul 2010 at 9:36

GoogleCodeExporter commented 8 years ago
Please try to delete the "startup/supportedRuntime" element from the 
"app.config" file of your test project.

Original comment by Yann.Tre...@gmail.com on 14 Oct 2010 at 1:40

GoogleCodeExporter commented 8 years ago

Original comment by Yann.Tre...@gmail.com on 14 Jun 2011 at 5:53