TRACKER : error TRK0002: Failed to execute command
Asked Answered
V

5

8

I got this error while trying to build my project on a buildAgent running as a service, does anyone have a solution for it?

 TRACKER : error TRK0002: Failed to execute command: ""C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64\CL.exe" @C:\BuildAgent\temp\buildTmp\tmpfde187c5fd8a42299ab4d18e25e0c9fe.rsp". The operation identifier is not valid.

i tried a solution to a similar issue when building the project in command line (using "_IsNativeEnvironment" variable ) but it didn't work for me, also i need the solution to work on my local computer permanently.

Vidavidal answered 31/8, 2016 at 14:33 Comment(1)
This may be of interest to you: connect.microsoft.com/VisualStudio/feedback/details/800753/…Maddox
F
1

This error will happen with multiple tools when launching MSBuild from the command line:

  • CL.exe
  • cvtres.exe
  • Lib.exe
  • link.exe

adding them to the exclusion list of the active antivirus can fix some of the issues, but will not be enough with a modern antivirus.

An alternative is to deactivate Tracker.exe which is a tool that enable incremental builds. As it's not something you generally want on a build server, I found it safe to deactivate.

You can deactivate it by passing this parameter to msbuild: /p:TrackFileAccess=false

Furey answered 15/12, 2020 at 13:34 Comment(0)
F
0

Windows Logs\Application in Windows Event Viewer may have clues about that.

In my case, it produce an event like

Activation context generation failed for "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\CL.exe".Error in manifest or policy file "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\CL.exe.Config" on line 0. Invalid Xml syntax.

I simply remove that .config file and it works.

Featherstone answered 8/9, 2017 at 20:1 Comment(0)
P
0

This happens me when the aggressive virus scanner in my org secretly detects these files as malicious and removes them in the background.

In my case, changing the rules of the virus scanner resolves this problem.

Pullen answered 16/10, 2018 at 14:10 Comment(0)
H
0

This happened to me because I was sending the wrong "/p:VisualStudioVersion" to msbuild.

I upgrated to a newer version of vs but I didn't update the command line script that was building my project.

Changing the "/p:VisualStudioVersion" to the major version of vs that was actually installed on my machine fixed the problem.

Hoffmann answered 14/4, 2022 at 14:16 Comment(0)
E
-1

I had this troublesome error. I deleted my local TEMP folder completely and rebooted.

C:\Users\ [USER]\AppData\Local\Temp

Evenson answered 11/11, 2018 at 2:59 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.