Page 1 of 1

[.01] VS2012 - Canceling process MSBuild.exe

Posted: Fri Jun 21, 2013 6:27 am
by fstroll
I expirienced 2 Problems in Version 4.02, now i downgraded to 3.7.6 and it works again:

1. MSbuild (Visual Studio 2012's Platform toolset v110_xp) does not work any more inside a sandbox. It can't connect to a subprocess. Sandboxie displays an error message that ImpersonateNamedPipe is not implemented.
2. Sandboxed Programs can't catch the mouse cursor properly any more. This prevents some games from working.

I am using Windows 7 64bit

[4.02][64 bit] Problem with MSBuild.exe in VisualStudio 2012

Posted: Mon Jun 24, 2013 10:18 am
by lopezimg
Hello guys!

I have a problem with a new version of Sandboxie. Whenever I try to build any project ( C#, C++, VB ) in Visual studio 2012 it gives mi a following error:

Code: Select all

Error	1	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)	C:\Users\Lucas\Documents\Visual Studio 2012\Projects\WpfApplication1\WpfApplication1\WpfApplication1.csproj	WpfApplication1
I don't want to rollback to an older version of sandboxie just bacause I've noticed that the form designer in Visual studio 2012 is finally working.

Posted: Tue Jun 25, 2013 5:54 am
by tzuk
In Version 4.03.01:

- Should fix the error with canceling MSBuild.exe.

- ImpersonateNamedPipe still issues a warning message, because the implementation is not correct but is good enough for MSBuild and probably most other cases. You can HIDE the message if it annoys you, but I want to keep it there so it can give a hint in case something else doesn't work because of it.

- Regarding mouse capture issues, perhaps an OpenWinClass=* setting will fix that. See also:

http://www.sandboxie.com/phpbb/viewtopic.php?t=15837