I have a remote agent running on the 64-bit machine, installed as a Windows service. When I compile a C# project by MSBuild it writesthe file
c:\Windows\SysWOW64\config\systemprofile\AppData\Local\Temp\.NETFramework,Version=v4.6.1.AssemblyAttributes.cs
However it tries to read the file
c:\Windows\System32\config\systemprofile\AppData\Local\Temp\.NETFramework,Version=v4.6.1.AssemblyAttributes.cs
Hence, the build fails. I have a 64-bit JRE8. What might be the source of the problem?