Question

Error loading SomeGallioTestProject.dll: An exception occurred while invoking a test driver.

I have this visual studio 2010 solution which contains to separate test projects.

They use MBUnit and Gallio for the test framework.

Previously both test projects used to run when Test/Run/All Tests in Solution was invoked.

Now only one of the test projects is running, and the error shown above is returned for the other project.

I have created new installation of visual studio with mbunit/gallio 3.4.14 to attempt to resolve the problem and it has made no difference.

Changing the processor type generates a similar error but identifies a mismatch, so in that case I am getting a different type of error.

Running the tests with Icarus allows the test suite to run, although Typemock is not correctly initialised in that case.

I cannot find any other files to indicate the cause of the exception and am after ideas to help identify the cause of the error, or even the mechanism to fix if possible.

Was it helpful?

Solution

Are the projects/mbunit/gallio dlls of different .net runtime versions?

Try building them all against .net 3.5 framework.

Or, If all are targeted to .net 4.0, maybe try changing

<startup>
      <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
</startup>

to:

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

in the test project's app.config

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top