Failed to start or connect to the MSBuild.exe child process.

In VS2012, when creating, I often get the following error:

Error 5 The build stopped unexpectedly because of an internal failure. Microsoft.Build.Exceptions.BuildAbortedException: Build was canceled. Failed to successfully launch or connect to a child MSBuild.exe process. Verify that the MSBuild.exe "C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe" launches successfully, and that it is loading the same microsoft.build.dll that the launching process loaded. If the location seems incorrect, try specifying the correct location in the BuildParameters object, or with the MSBUILD_EXE_PATH environment variable. at Microsoft.Build.BackEnd.NodeProviderOutOfProc.CreateNode(Int32 nodeId, INodePacketFactory factory, NodeConfiguration configuration) at Microsoft.Build.BackEnd.NodeManager.AttemptCreateNode(INodeProvider nodeProvider, NodeConfiguration nodeConfiguration) at Microsoft.Build.BackEnd.NodeManager.CreateNode(NodeConfiguration configuration, NodeAffinity nodeAffinity) at Microsoft.Build.Execution.BuildManager.PerformSchedulingActions(IEnumerable`1 responses) at Microsoft.Build.Execution.BuildManager.HandleNewRequest(Int32 node, BuildRequestBlocker blocker) at Microsoft.Build.Execution.BuildManager.IssueRequestToScheduler(BuildSubmission submission, Boolean allowMainThreadBuild, BuildRequestBlocker blocker) 

In the task manager, I see that there are at least 10-20 MSBuild.exe and Conhost.exe. I cannot stop them, and even closing VS does not solve the problem. The only workaround at the moment is to log out and log back in.

Has anyone experienced this and may have had permission?

Thanks in advance. Rob

+8
visual-studio-2010 visual-studio-2012 msbuild
source share
1 answer

See Failed to start or connect to the MSBuild.exe child process. Verify that MSBuild.exe tells you to restart Visual Studio to fix the problem.

It certainly worked for me.

+11
source share

All Articles