Cannot find file vstest.executionengine.exe

Answered

When discover and/or running unittests using Resharper Ultimate 2018.3.4 on Visual Studio 2019 (16.0.0 and 16.0.1) I get the following error saying that the file "vstest.executionengine.exe" is missing. I cannot find a way to get this missing file installed with VS2019, so I'm not sure if VS2019 should ships with this file or if Resharper should find another way of doing things, since this file is not present any more.

Error message:

2019.04.10 09:06:40.518 ERROR Transition failed: Transition from state <Disconnected> on event <local::Connect>. Executable file to start couldn't be found on path 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TestWindow\vstest.executionengine.exe' The system cannot find the file specified

--- EXCEPTION #1/3 [Win32Exception]
Message = “The system cannot find the file specified”
ExceptionPath = Root.InnerException.InnerException
NativeErrorCode = 2
ClassName = System.ComponentModel.Win32Exception
HResult = E_FAIL=EFail=80004005
Source = System
StackTraceString = “
at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start()
at JetBrains.ReSharper.UnitTestFramework.Processes.PreparedProcess.Start()

--- Outer ---

--- EXCEPTION #2/3 [FileNotFoundException]
Message = “Executable file to start couldn't be found on path 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TestWindow\vstest.executionengine.exe'”
ExceptionPath = Root.InnerException
ClassName = System.IO.FileNotFoundException
InnerException = “Exception #1 at Root.InnerException.InnerException”
HResult = COR_E_FILENOTFOUND=E_FILENOTFOUND=80070002
Source = JetBrains.ReSharper.UnitTestFramework
StackTraceString = “
at JetBrains.ReSharper.UnitTestFramework.Processes.PreparedProcess.Start()
at JetBrains.ReSharper.UnitTesting.MSTest.Provider.Execution.MsTestExecutionProtocol.StartRunner()
at Appccelerate.StateMachine.Machine.ActionHolders.ArgumentLessActionHolder.Execute(Object argument)
at Appccelerate.StateMachine.Machine.States.State`2.ExecuteEntryAction(IActionHolder actionHolder, ITransitionContext`2 context)

--- Outer ---

--- EXCEPTION #3/3 [LoggerException]
Message = “Transition failed: Transition from state <Disconnected> on event <local::Connect>. Executable file to start couldn't be found on path 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TestWindow\vstest.executionengine.exe'”
ExceptionPath = Root
ClassName = JetBrains.Util.LoggerException
InnerException = “Exception #2 at Root.InnerException”
HResult = COR_E_APPLICATION=80131600
StackTraceString = “
at JetBrains.ReSharper.UnitTesting.MSTest.Provider.Execution.MsTestExecutionProtocol.<.ctor>b__24_10(Object sender, TransitionExceptionEventArgs`2 args)
at Appccelerate.StateMachine.Machine.StateMachine`2.RaiseEvent[T](EventHandler`1 eventHandler, T arguments, ITransitionContext`2 context, Boolean raiseEventOnException)
at Appccelerate.StateMachine.Machine.StateMachine`2.OnExceptionThrown(ITransitionContext`2 context, Exception exception)
at Appccelerate.StateMachine.Machine.Contexts.TransitionContext`2.OnExceptionThrown(Exception exception)
at Appccelerate.StateMachine.Machine.States.State`2.HandleException(Exception exception, ITransitionContext`2 context)
at Appccelerate.StateMachine.Machine.States.State`2.HandleEntryActionException(ITransitionContext`2 context, Exception exception)
at Appccelerate.StateMachine.Machine.States.State`2.ExecuteEntryAction(IActionHolder actionHolder, ITransitionContext`2 context)
at Appccelerate.StateMachine.Machine.States.State`2.ExecuteEntryActions(ITransitionContext`2 context)
at Appccelerate.StateMachine.Machine.States.State`2.Entry(ITransitionContext`2 context)
at Appccelerate.StateMachine.Machine.States.State`2.EnterShallow(ITransitionContext`2 context)
at Appccelerate.StateMachine.Machine.States.State`2.EnterHistoryNone(ITransitionContext`2 context)
at Appccelerate.StateMachine.Machine.States.State`2.EnterByHistory(ITransitionContext`2 context)
at Appccelerate.StateMachine.Machine.Transitions.Transition`2.Fire(ITransitionContext`2 context)
at Appccelerate.StateMachine.Machine.States.State`2.Fire(ITransitionContext`2 context)
at Appccelerate.StateMachine.Machine.StateMachine`2.Fire(TEvent eventId, Object eventArgument)
at Appccelerate.StateMachine.ActiveStateMachine`2.ProcessEventQueue(CancellationToken cancellationToken)
at Appccelerate.StateMachine.ActiveStateMachine`2.<Start>b__32_0()
at System.Threading.Tasks.Task.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.ThreadPoolTaskScheduler.LongRunningThreadWork(Object obj)
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
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.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart(Object obj)

2019.04.10 09:06:40.519 ERROR System.IO.FileNotFoundException: Executable file to start couldn't be found on path 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TestWindow\vstest.executionengine.exe' ---> System.ComponentModel.Win32Exception (0x80004005): The system cannot find the file specified
at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start()
at JetBrains.ReSharper.UnitTestFramework.Processes.PreparedProcess.Start()
at JetBrains.ReSharper.UnitTestFramework.Processes.PreparedProcess.Start()
at JetBrains.ReSharper.UnitTesting.MSTest.Provider.Execution.MsTestExecutionProtocol.StartRunner()
at Appccelerate.StateMachine.Machine.ActionHolders.ArgumentLessActionHolder.Execute(Object argument)
at Appccelerate.StateMachine.Machine.States.State`2.ExecuteEntryAction(IActionHolder actionHolder, ITransitionContext`2 context)
2019.04.10 09:06:40.524 WARN Element DK.IVR_VIS.Test.UnitTest.Client.GUI.Forms.PreApproval.InvitationFormTest was left pending after its run completion.

2
3 comments

Hello!

Thank you for the feedback.

This is known issue - https://youtrack.jetbrains.com/issue/RSRP-472598 that is fixed in ReSharper 2019.1 EAP, you are welcome to try it - https://www.jetbrains.com/resharper/eap/.

Thank you.

2
Avatar
Permanently deleted user

It works in the newest EAP (2019.1 EAP 6) :-)

Thank you for a fast response.

0
Avatar
Permanently deleted user

Are there any plans to add this into 2018.3? If not, when is this going to actually released?

0

Please sign in to leave a comment.