Monday, July 02, 2012 5:43 PM
On one of our build machine (VS&TFS 2010), the builds are contsantly failing with the following error(s):
- C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets (202): The specified task executable "Lib.exe" could not be run. The requested operation cannot be performed on a file with a user-mapped section open.
- C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\CodeAnalysis\Microsoft.CodeAnalysis.targets (129): The "CodeAnalysis" task failed unexpectedly. System.UnauthorizedAccessException: Access to the path 'C:\Users\tfsbuild0007\AppData\Local\Temp\tmp9AA2.tmp' is denied. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.File.Delete(String path) at Microsoft.Build.Tasks.CodeAnalysis.Execute() at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute() at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask, Boolean& taskResult)
- C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Microsoft.Common.targets (1835): The requested operation cannot be performed on a file with a user-mapped section open.
The following executables are usually in the error message: lib.exe, rc.exe, link.exe, mt.exe, cl.exe. After restarting the machine, 4-5 runs are green, than the failure again :( We have a job which deletes the temp files after 1 day. There are several BAs (4-6) on that machine, not just one.
Thanks in advance, best regards
Tuesday, July 03, 2012 7:32 AMModerator
Thank you for posting in msdn forum.
If you use msbuild your targets directly, will it occur? If yes, you can show the error message here.
Thank you for your understanding and support.
MSDN Community Support | Feedback to us
Friday, August 03, 2012 9:50 AM
Thanks for the reply, I really appreciate it. Finally I've managed to solve the problem. At least I've a workaround:
This values should be modified to „4” -> machine restart
This setting turns off TrendMicro virusscanner RealScan process which caused us the problem. Since 5 weeks the problem is gone. We are about to track down which folder should we add to the trandmicro exlcusion list in order to avoid such errors.
- Marked As Answer by mrsmart83 Friday, August 03, 2012 9:50 AM