Build/Test Issues

Ipc.IpcConnectionClosedException

Started by crestall on 3,750 views

Trying to tets a webAPI Core 2 project bur I get an "Analysis Failure" when attempting to load the tests. This is in VS 2017

An error occurred while analysing this project after it was built: NCrunch encountered an unexpected error occurred while building an environment to analyse an assembly: nCrunch.TaskRunner.Ipc.IpcConnectionClosedException: The connection has been closed
at nCrunch.Core.ProcessManagement.ExternalProcessManager.(ProcessorArchitecture , ProcessLoadParameters )
at nCrunch.Core.ProcessManagement.ExternalProcessManager.LoadExternalProcess(ProcessLoadParameters parameters, GridClientId client)
at nCrunch.Core.TestManagement.TestRunnerProcess..()
at nCrunch.Common.PerformanceTracking.PerfTracker.TrackActivity(String name, Action activity)
at nCrunch.Core.TestManagement.TestRunnerProcess.(Nullable`1 , FilePath , GridClientId , CustomEnvironmentVariable[] )
at nCrunch.Core.TestManagement.TestRunnerProcess..()
at nCrunch.Common.PerformanceTracking.PerfTracker.TrackActivity(String name, Action activity)
at nCrunch.Core.Processing.AnalysisTaskLogic.DoProcessTaskAndReturnSuccessFlag()

My coworkers can open the same solution and see the tests with their NCrunch.. Please advise..
Hi, thanks for sharing this problem.

Usually, this is caused by the dotnet.exe process failing to initialise. If you're not running the latest version of NCrunch, make sure you upgrade. This was quite a common problem with earlier versions of NCrunch last year as integration with .NET Core was still being introduced.

Assuming you're running the latest version, would you mind submitting a bug report after this happens? The log file in the report may yield more information about why this is happening.

Post a reply

Log in to reply.