This occurs for all tests that I have tried. The same tests work fine with SharpDevelop 4.4.
Automated error report below:
SharpDevelop Version : 5.1.0.5134-RC-d5052dc5
.NET Version : 4.5.51209
OS Version : Microsoft Windows NT 6.1.7601 Service Pack 1
Current culture : English (United Kingdom) (en-GB)
Running under WOW6432, processor architecture: x86-64
Working Set Memory : 341068kb
GC Heap Memory : 97193kb
Exception thrown:
ICSharpCode.Profiler.Controller.ProfilerException: File is not a valid .NET executable file!
at ICSharpCode.Profiler.Controller.Profiler..ctor(ProcessStartInfo info, IProfilingDataWriter dataWriter, ProfilerOptions options)
at ICSharpCode.Profiler.AddIn.ProfilerRunner..ctor(ProcessStartInfo startInfo, Boolean useTempFileDatabase, IProfilingDataWriter writer)
at ICSharpCode.Profiler.AddIn.ProfilerProcessRunner.Start(String program, String[ arguments)
at ICSharpCode.Profiler.AddIn.ProfilerProcessRunner.StartCommandLine(String commandLine)
at ICSharpCode.UnitTesting.TestProcessRunnerBase.Start(ProcessStartInfo processStartInfo)
at ICSharpCode.UnitTesting.TestProcessRunnerBase.Start(IEnumerable`1 selectedTests)
at ICSharpCode.UnitTesting.TestRunnerBase.RunAsync(IEnumerable`1 selectedTests, IProgress`1 progress, TextWriter output, CancellationToken cancellationToken)
at ICSharpCode.UnitTesting.Frameworks.TestExecutionManager.<RunTestsAsync>d__13.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at ICSharpCode.UnitTesting.SDTestService.<RunTestsAsync>d__15.MoveNext()
---- Recent log messages:
09:18:22.979 [48] DEBUG - Received command ReportEvent
09:18:22.979 [48] DEBUG - Received command ReportEvent
09:18:22.980 [48] DEBUG - Received command ReportEvent
09:18:22.980 [48] DEBUG - Received command ReportEvent
09:18:22.981 [48] DEBUG - Received command ReportEvent
09:18:22.981 [48] DEBUG - Received command ReportEvent
09:18:22.981 [48] DEBUG - Received command ReportEvent
09:18:22.981 [48] DEBUG - Received command ReportEvent
09:18:23.044 [48] DEBUG - Received command ReportEvent
09:18:23.045 [48] DEBUG - Received command ReportEvent
09:18:23.045 [48] DEBUG - Received command ReportEvent
09:18:23.046 [48] DEBUG - Received command ReportEvent
09:18:23.047 [48] DEBUG - Received command ReportEvent
09:18:23.048 [48] DEBUG - Received command ReportEvent
09:18:23.048 [48] DEBUG - Received command ReportEvent
09:18:23.050 [48] DEBUG - Received command ReportEvent
09:18:23.050 [48] DEBUG - Received command ReportEvent
09:18:23.052 [48] DEBUG - Received command ReportEvent
09:18:23.060 [48] DEBUG - Received command ReportEvent
09:18:23.060 [48] DEBUG - Received command ReportEvent
09:18:23.061 [48] DEBUG - Received command BuildDone
09:18:23.061 [48] INFO - Finished building ActiveEW.Core.Test, success=True
09:18:23.064 [UnitTesting Pipe Reader] DEBUG - Waiting for connection to pipe
09:18:23.066 [21] ERROR -
--> Exception:
ICSharpCode.Profiler.Controller.ProfilerException: File is not a valid .NET executable file!
at ICSharpCode.Profiler.Controller.Profiler..ctor(ProcessStartInfo info, IProfilingDataWriter dataWriter, ProfilerOptions options)
at ICSharpCode.Profiler.AddIn.ProfilerRunner..ctor(ProcessStartInfo startInfo, Boolean useTempFileDatabase, IProfilingDataWriter writer)
at ICSharpCode.Profiler.AddIn.ProfilerProcessRunner.Start(String program, String[ arguments)
at ICSharpCode.Profiler.AddIn.ProfilerProcessRunner.StartCommandLine(String commandLine)
at ICSharpCode.UnitTesting.TestProcessRunnerBase.Start(ProcessStartInfo processStartInfo)
at ICSharpCode.UnitTesting.TestProcessRunnerBase.Start(IEnumerable`1 selectedTests)
at ICSharpCode.UnitTesting.TestRunnerBase.RunAsync(IEnumerable`1 selectedTests, IProgress`1 progress, TextWriter output, CancellationToken cancellationToken)
at ICSharpCode.UnitTesting.Frameworks.TestExecutionManager.<RunTestsAsync>d__13.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at ICSharpCode.UnitTesting.SDTestService.<RunTestsAsync>d__15.MoveNext()
09:18:23.066 [21] WARN - Stack trace of last exception log:
at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo)
at System.Environment.get_StackTrace()
at ICSharpCode.SharpDevelop.Logging.SDMessageService.ShowException(Exception ex, String message)
at ICSharpCode.SharpDevelop.SharpDevelopExtensions.<>c.<FireAndForget>b__2_0(Task t)
at System.Threading.Tasks.ContinuationTaskFromTask.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
at System.Threading.Tasks.Task.ExecutionContextCallback(Object obj)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
at System.Threading.Tasks.Task.ExecuteEntry(Boolean bPreventDoubleExecution)
at System.Threading.Tasks.Task.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
---- Post-error application state information:
Installed 3rd party AddIns: [PInvoke Add-in 0.0.0.0]
ProjectService.CurrentSolution: [Solution C:\Users
amos\Projects\CGS\MicroFluidics\MicroFluidicsRev4_vs2010.sln with 17 projects]
ProjectService.CurrentProject: [CSharpProject: ActiveEW.Core]
Workbench.ActiveContent: System.InvalidOperationException: The calling thread cannot access this object because a different thread owns it.
at System.Windows.Threading.Dispatcher.VerifyAccess()
at ICSharpCode.SharpDevelop.DispatcherMessageLoop.VerifyAccess()
at ICSharpCode.SharpDevelop.Workbench.WpfWorkbench.get_ActiveContent()
at ICSharpCode.SharpDevelop.Workbench.WorkbenchStartup.<>c.<InitializeWorkbench>b__4_0()
at ICSharpCode.Core.ApplicationStateInfoService.GetCurrentApplicationStateInfo()