Yesterday security was messing around with McAfee settings and all of a sudden I could not build my solution. I had the following one error:
The specified task executable "cmd.exe" could not be run. System.IO.IOException: Failed to create a temporary file. Temporary files folder is full or its path is incorrect. Access to the path 'C:\Users\hsimpson\AppData\Local\Temp\tmp77de4b0230e0494787ccfe80380a149a.exec.cmd'
is denied. ---> System.UnauthorizedAccessException: Access to the path 'C:\Users\hsimpson\AppData\Local\Temp\tmp77de4b0230e0494787ccfe80380a149a.exec.cmd' is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath,
Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.StreamWriter.CreateFile(String path, Boolean append, Boolean checkHost)
at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize, Boolean checkHost)
at System.IO.File.InternalWriteAllText(String path, String contents, Encoding encoding, Boolean checkHost)
at System.IO.File.WriteAllText(String path, String contents)
at Microsoft.Build.Shared.FileUtilities.GetTemporaryFile(String directory, String extension, Boolean createFile)
--- End of inner exception stack trace ---
at Microsoft.Build.Shared.FileUtilities.GetTemporaryFile(String directory, String extension, Boolean createFile)
at Microsoft.Build.Tasks.Exec.CreateTemporaryBatchFile()
at Microsoft.Build.Tasks.Exec.AddCommandLineCommands(CommandLineBuilderExtension commandLine)
at Microsoft.Build.Tasks.ToolTaskExtension.GenerateCommandLineCommands()
at Microsoft.Build.Utilities.ToolTask.Execute() SaleSuggestions
There was another file too created and it contained:
UNHANDLED EXCEPTIONS FROM PROCESS 22552:
=====================
5/31/2019 7:54:20 AM
System.IO.IOException: Pipe is broken.
at System.IO.Pipes.PipeStream.WinIOError(Int32 errorCode)
at System.IO.Pipes.PipeStream.BeginWriteCore(Byte[] buffer, Int32 offset, Int32 count, AsyncCallback callback, Object state)
at System.IO.Pipes.PipeStream.WriteCore(Byte[] buffer, Int32 offset, Int32 count)
at System.IO.Pipes.PipeStream.Write(Byte[] buffer, Int32 offset, Int32 count)
at Microsoft.Build.BackEnd.NodeEndpointOutOfProcBase.RunReadLoop(Stream localReadPipe, Stream localWritePipe, ConcurrentQueue`1 localPacketQueue, AutoResetEvent localPacketAvailable, AutoResetEvent localTerminatePacketPump)
===================
I cleaned up the Temp file and that didn't help. It's like there is still a permissions error.
Any Ideas? Anyone else running into this McAfee issue?