mohanak12 / mb-unit

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

ERROR IN TEST RUNNER: Gallio - MbUnit v2 (MbUnit.Framework) #673

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Installed 3.2 445
2. Opened VS 2008
3. Run MbUnit test though Context Menu - Run Tests.

What is the expected output? What do you see instead?

------ Test started: Assembly: UnitTests.Subtext.dll ------

Gallio TestDriven.Net Runner - Version 3.2 build 445

=== ERROR IN TEST RUNNER: Gallio - MbUnit v2 (MbUnit.Framework) ===
System.Runtime.Remoting.ServerException: Gallio.Loader.LoaderException: Failed 
to load the loader into the remote AppDomain. ---> System.InvalidCastException: 
Unable to cast transparent proxy to type 'IsolatedInitializer'.
   at Gallio.Loader.Isolation.IsolatedEnvironmentManager.InternalCreateIsolatedEnvironment(AppDomain appDomain, String runtimePath)
   --- End of inner exception stack trace ---
   at Gallio.Loader.Isolation.IsolatedEnvironmentManager.InternalCreateIsolatedEnvironment(AppDomain appDomain, String runtimePath)
   at Gallio.Loader.Isolation.IsolatedEnvironmentManager.CreateIsolatedEnvironment(RuntimeLocator runtimeLocator)
   at Gallio.Loader.SharedEnvironment.SharedEnvironmentManager.CreateSharedEnvironment()
   at Gallio.Loader.SharedEnvironment.SharedEnvironmentManager.GetSharedEnvironment()
   at Gallio.TDNetRunner.Core.LocalProxyTestRunner.CreateRemoteProxyTestRunner()
   at Gallio.TDNetRunner.Core.LocalProxyTestRunner.EnsureTestRunnerIsCreated()
   at Gallio.TDNetRunner.Core.LocalProxyTestRunner.RunImpl(IFacadeTestListener testListener, String assemblyPath, String cref, FacadeOptions facadeOptions)
   at Gallio.TDNetRunner.Core.BaseProxyTestRunner.Run(IFacadeTestListener testListener, String assemblyPath, String cref, FacadeOptions facadeOptions)
   at Gallio.TDNetRunner.Core.BaseProxyTestRunner.Run(IFacadeTestListener testListener, String assemblyPath, String cref, FacadeOptions facadeOptions)
   at Gallio.TDNetRunner.GallioResidentTestRunner.Run(ITestListener testListener, String assemblyFile, String cref)
   at TestDriven.TestRunner.ResidentTestRunner.Run(ITestListener testListener, ITraceListener traceListener, String assemblyFile, String cref)
   at TestDriven.TestRunner.Server.ServerTestRunner.Run(ITestListener testListener, ITraceListener traceListener, String assemblyPath, String testPath)

What version of the product are you using? On what operating system?

Please provide any additional information below.

If I do right click on test assembly and do Start Test, tests are not run at 
all:

------ Test started: Assembly: UnitTests.Subtext.dll ------

Gallio TestDriven.Net Runner - Version 3.2 build 445

=== ERROR IN TEST RUNNER: Gallio - MbUnit v2 (MbUnit.Framework) ===
System.Runtime.Remoting.ServerException: Gallio.Loader.LoaderException: Failed 
to load the loader into the remote AppDomain. ---> System.InvalidCastException: 
Unable to cast transparent proxy to type 'IsolatedInitializer'.
   at Gallio.Loader.Isolation.IsolatedEnvironmentManager.InternalCreateIsolatedEnvironment(AppDomain appDomain, String runtimePath)
   --- End of inner exception stack trace ---
   at Gallio.Loader.Isolation.IsolatedEnvironmentManager.InternalCreateIsolatedEnvironment(AppDomain appDomain, String runtimePath)
   at Gallio.Loader.Isolation.IsolatedEnvironmentManager.CreateIsolatedEnvironment(RuntimeLocator runtimeLocator)
   at Gallio.Loader.SharedEnvironment.SharedEnvironmentManager.CreateSharedEnvironment()
   at Gallio.Loader.SharedEnvironment.SharedEnvironmentManager.GetSharedEnvironment()
   at Gallio.TDNetRunner.Core.LocalProxyTestRunner.CreateRemoteProxyTestRunner()
   at Gallio.TDNetRunner.Core.LocalProxyTestRunner.EnsureTestRunnerIsCreated()
   at Gallio.TDNetRunner.Core.LocalProxyTestRunner.RunImpl(IFacadeTestListener testListener, String assemblyPath, String cref, FacadeOptions facadeOptions)
   at Gallio.TDNetRunner.Core.BaseProxyTestRunner.Run(IFacadeTestListener testListener, String assemblyPath, String cref, FacadeOptions facadeOptions)
   at Gallio.TDNetRunner.Core.BaseProxyTestRunner.Run(IFacadeTestListener testListener, String assemblyPath, String cref, FacadeOptions facadeOptions)
   at Gallio.TDNetRunner.GallioResidentTestRunner.Run(ITestListener testListener, String assemblyFile, String cref)
   at TestDriven.TestRunner.ResidentTestRunner.Run(ITestListener testListener, ITraceListener traceListener, String assemblyFile, String cref)
   at TestDriven.TestRunner.Server.ServerTestRunner.Run(ITestListener testListener, ITraceListener traceListener, String assemblyPath, String testPath)
=================================================

Original issue reported on code.google.com by alexande...@gmail.com on 17 Jun 2010 at 5:04

GoogleCodeExporter commented 9 years ago
Same error dont know what the problem is.

Original comment by bhushanv...@gmail.com on 27 Aug 2010 at 6:11

GoogleCodeExporter commented 9 years ago
Assuming you are running a setup like mine, I was able to resolve this 
situation by doing the following:

1) Shutdown all copies of Visual Studio
2) Download and install the latest TestDriven (in my case 3.0.2749 Enterprise)
3) Start studio and right click to run tests.

In the past when I have upgraded Gallio I've just re-installed the currently 
installed version of TD to get this working again. I didn't this time because I 
was pretty far out of data for TD so I can't say if that would work, but it 
might.

Original comment by steven.p...@gmail.com on 30 Aug 2010 at 6:00