Download

How do I fix an error when compiling a UE4 project?

How do I fix an error when compiling a UE4 project?
Unhandled exception: system.Exception: unable to open the log file for writing (C:\Program files\Epic Games\UE_4. 24 \ Engine\Programs\UnrealBuildTool\Log.txt) – > system.UnauthorizedAccessException: Access denied on the way “C:\Program files\Epic Games\UE_4. 24 \ Engine\Programs\UnrealBuildTool\Log.txt format”. Testing H:\UE4\Projects\Test\Intermediate\ProjectFiles\UnrealBuildTool 1
When trying to create a c ++ project in UE4 Visual Visual Studio 2017 with administrator rights an error occurs: https://sun1-27.userapi.com/ncm0x6N7UmKaulZ5P7hPcKvuGNja3oKe2JbT_w/3DwHlrQcMZk.jpg

Check the Output (Not the Error List) Tab of Visual Studio. It will give you more information about what the error is.
Also make sure that no other process is running besides Unreal Editor and Visual Studio. Sometimes the game running (e.g. as a Standalone mode) in the background can cause these issues.

With administrator rights and parallel builds down to 1 in VS, everything seems to work. Will this be fixed in future versions of UE4?