# VS 2022 Enterprise/Pro Build failure UE5.6 : Exited with error code -1 . The build will fail. Any advice? 

**URL:** <https://forums.unrealengine.com/t/vs-2022-enterprise-pro-build-failure-ue5-6-exited-with-error-code-1-the-build-will-fail-any-advice/2633433>\
**Category:** Getting Started & Setup\
**Tags:** build, unreal-engine, Visual-Studio, question, CPP\
**Created:** [August 7, 2025, 1:26pm UTC](https://forums.unrealengine.com/t/vs-2022-enterprise-pro-build-failure-ue5-6-exited-with-error-code-1-the-build-will-fail-any-advice/2633433 "2025-08-07T13:26:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dziegielewski](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dziegielewski](https://forums.unrealengine.com/u/dziegielewski)\
**Post date:** [August 7, 2025, 1:26pm UTC](https://forums.unrealengine.com/t/vs-2022-enterprise-pro-build-failure-ue5-6-exited-with-error-code-1-the-build-will-fail-any-advice/2633433/1 "2025-08-07T13:26:33Z")

</div>

Trying to build UE5.6 in a corporate security environment

Fresh Epic + Unreal 5.6Engine reinstall a few times now  
+Full Administrator rights added for user by IT  
+Running VS in admin mode  
+Verbose log enabled  
+recent vulnerable packages updated  
+rc.exe cl.exe is where it says it is  
+rc.exe can run standalone with no errors  
+all Windows 10+11 SDKs present  
+tried Enterprise and Professional VS version  
+regenerated solution with each step trying to fix  
+false  
+ProgramFiles/Epic Game made fully writable  
+Overall Configuration Status [Green]  
+OS Name Microsoft Windows 11 Enterprise  
+Version 10.0.26100 Build 26100

Building and running just blueprint works fine and engine starts  
Converting to C++ or starting with c++ yields this result

_ **Here is a bit cut off version for sanity** _

27\>------ Building 26 action(s) started ------  
27\> Compile [x64] SharedPCH.UnrealEd.Project.NonOptimized.ValApi.ValExpApi.Cpp20.cpp: Exited with error code -1 . The build will fail.  
27\> Compile [x64] SharedPCH.UnrealEd.Project.NonOptimized.ValApi.ValExpApi.Cpp20.cpp: WorkingDirectory C:\Program Files\Epic Games\UE\_5.6\Engine\Source  
27\> Compile [x64] SharedPCH.UnrealEd.Project.NonOptimized.ValApi.ValExpApi.Cpp20.cpp: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.38.33130\bin\Hostx64\x64\c  
27\>[1/26] Compile [x64] SharedPCH.UnrealEd.Project.NonOptimized.ValApi.ValExpApi.Cpp20.cpp  
27\> Compile [x64] SharedPCH.UnrealEd.Project.ValApi.ValExpApi.Cpp20.cpp: Exited with error code -1 . The build will fail.  
27\> Compile [x64] SharedPCH.UnrealEd.Project.ValApi.ValExpApi.Cpp20.cpp: WorkingDirectory C:\Program Files\Epic Games\UE\_5.6\Engine\Source  
27\> Compile [x64] SharedPCH.UnrealEd.Project.ValApi.ValExpApi.Cpp20.cpp: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.38.33130\bin\Hostx64\x64\cl.exe @"C:/\_P  
27\>[2/26] Compile [x64] SharedPCH.UnrealEd.Project.ValApi.ValExpApi.Cpp20.cpp  
27\>[3/26] Resource Default.rc2  
27\> Resource Default.rc2: Exited with error code -1 . The build will fail.  
27\> Resource Default.rc2: WorkingDirectory C:\Program Files\Epic Games\UE\_5.6\Engine\Source  
27\> Resource Default.rc2: C:\Program Files (x86)\Windows Kits\10\bin\10.0.22621.0\x64\rc.exe /nologo /D\_WIN64 /l 0x409 /I “.” /I "C:/Program Files/Microsoft Visual Studio/2022/Enterprise  
27\>[4/26] Resource Default.rc2  
27\> Resource Default.rc2: Exited with error code -1 . The build will fail.  
27\> Resource Default.rc2: WorkingDirectory C:\Program Files\Epic Games\UE\_5.6\Engine\Source  
27\> Resource Default.rc2: C:\Program Files (x86)\Windows Kits\10\bin\10.0.22621.0\x64\rc.exe /nologo /D\_WIN64 /l 0x409 /I “.” /I "C:/Program Files/Microsoft Visual Studio/2022/Enterprise  
27\>[5/26] Resource Default.rc2  
27\> Resource Default.rc2: Exited with error code -1 . The build will fail.  
27\> Resource Default.rc2: WorkingDirectory C:\Program Files\Epic Games\UE\_5.6\Engine\Source  
27\> Resource Default.rc2: C:\Program Files (x86)\Windows Kits\10\bin\10.0.22621.0\x64\rc.exe /nologo /D\_WIN64 /l 0x409 /I “.” /I "C:/Program Files/Microsoft Visual Studio/2022/Enterprise  
27\>[6/26] GenerateTLH dte80a.tlh  
27\> GenerateTLH dte80a.tlh: Exited with error code -1 . The build will fail.  
27\> GenerateTLH dte80a.tlh: WorkingDirectory C:\Program Files\Epic Games\UE\_5.6\Engine\Source  
27\> GenerateTLH dte80a.tlh: C:\WINDOWS\system32\cmd.exe /C “C:\Program Files\Epic Games\UE\_5.6\Engine\Intermediate\Build\Win64\x64\UnrealEditor\Development\VisualStudioDTE\dte80a.bat”  
27\>Trace written to file C:/Users/xxx/AppData/Local/UnrealBuildTool/Log.uba with size 2.7kb  
27\>Total time in Unreal Build Accelerator local executor: 10.11 seconds  
27\>  
27\>Result: Failed (OtherCompilationError)  
27\>Total execution time: 25.83 seconds

 ![ue56compilererror](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/4/b/74b8354f1aa13789ea96fe2ea588e7044ac483cc.png)

_ **and here is the first five lines in full** _

53\>------ Rebuild All started: Project: AutomationTool, Configuration: Development Any CPU ------  
27\>[1/26] Resource Default.rc2  
27\> Resource Default.rc2: Exited with error code -1 . The build will fail.  
27\> Resource Default.rc2: WorkingDirectory C:\Program Files\Epic Games\UE\_5.6\Engine\Source  
27\> Resource Default.rc2: C:\Program Files (x86)\Windows Kits\10\bin\10.0.22621.0\x64\rc.exe /nologo /D\_WIN64 /l 0x409 /I “.” /I “C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Tools/MSVC/14.38.33130/INCLUDE” /I “C:/Program Files (x86)/Windows Kits/10/include/10.0.22621.0/ucrt” /I “C:/Program Files (x86)/Windows Kits/10/include/10.0.22621.0/shared” /I “C:/Program Files (x86)/Windows Kits/10/include/10.0.22621.0/um” /I “C:/Program Files (x86)/Windows Kits/10/include/10.0.22621.0/winrt” /DIS\_PROGRAM=0 /DUE\_EDITOR=1 /DUSE\_SHADER\_COMPILER\_WORKER\_TRACE=0 /DUE\_REFERENCE\_COLLECTOR\_REQUIRE\_OBJECTPTR=1 /DWITH\_VERSE\_VM=0 /DENABLE\_PGO\_PROFILE=0 /DUSE\_VORBIS\_FOR\_STREAMING=1 /DUSE\_XMA2\_FOR\_STREAMING=1 /DWITH\_DEV\_AUTOMATION\_TESTS=1 /DWITH\_PERF\_AUTOMATION\_TESTS=1 /DWITH\_LOW\_LEVEL\_TESTS=0 /DEXPLICIT\_TESTS\_TARGET=0 /DWITH\_TESTS=1 /DUNICODE /D\_UNICODE /D\_\_UNREAL\_\_ /DIS\_MONOLITHIC=0 /DIS\_MERGEDMODULES=0 /DWITH\_ENGINE=1 /DWITH\_UNREAL\_DEVELOPER\_TOOLS=1 /DWITH\_UNREAL\_TARGET\_DEVELOPER\_TOOLS=1 /DWITH\_APPLICATION\_CORE=1 /DWITH\_COREUOBJECT=1 /DUE\_TRACE\_ENABLED=1 /DUE\_TRACE\_FORCE\_ENABLED=0 /DWITH\_VERSE=1 /DUE\_USE\_VERSE\_PATHS=1 /DWITH\_VERSE\_BPVM=1 /DUSE\_STATS\_WITHOUT\_ENGINE=0 /DWITH\_PLUGIN\_SUPPORT=0 /DWITH\_ACCESSIBILITY=1 /DWITH\_PERFCOUNTERS=1 /DWITH\_FIXED\_TIME\_STEP\_SUPPORT=1 /DUSE\_LOGGING\_IN\_SHIPPING=0 /DALLOW\_CONSOLE\_IN\_SHIPPING=0 /DALLOW\_PROFILEGPU\_IN\_TEST=0 /DALLOW\_PROFILEGPU\_IN\_SHIPPING=0 /DWITH\_LOGGING\_TO\_MEMORY=0 /DUSE\_CACHE\_FREED\_OS\_ALLOCS=1 /DUSE\_CHECKS\_IN\_SHIPPING=0 /DUSE\_UTF8\_TCHARS=0 /DUSE\_ESTIMATED\_UTCNOW=0 /DUE\_ALLOW\_EXEC\_COMMANDS\_IN\_SHIPPING=1 /DWITH\_EDITOR=1 /DWITH\_IOSTORE\_IN\_EDITOR=1 /DWITH\_CLIENT\_CODE=1 /DWITH\_SERVER\_CODE=1 /DUE\_FNAME\_OUTLINE\_NUMBER=0 /DWITH\_PUSH\_MODEL=1 /DWITH\_CEF3=1 /DWITH\_LIVE\_CODING=1 /DWITH\_CPP\_MODULES=0 /DWITH\_CPP\_COROUTINES=0 /DWITH\_PROCESS\_PRIORITY\_CONTROL=0 /DUBT\_MODULE\_MANIFEST=“UnrealEditor.modules” /DUBT\_MODULE\_MANIFEST\_DEBUGGAME=“UnrealEditor-Win64-DebugGame.modules” /DUBT\_COMPILED\_PLATFORM=Win64 /DUBT\_COMPILED\_TARGET=Editor /DUE\_APP\_NAME=“UnrealEditor” /DUE\_WARNINGS\_AS\_ERRORS=0 /DFORCE\_ANSI\_ALLOCATOR=0 /DUSE\_MALLOC\_BINNED2=1 /DUSE\_MALLOC\_BINNED3=0 /DNDIS\_MINIPORT\_MAJOR\_VERSION=0 /DWIN32=1 /D\_WIN32\_WINNT=0x0601 /DWINVER=0x0601 /DPLATFORM\_WINDOWS=1 /DPLATFORM\_MICROSOFT=1 /DOVERRIDE\_PLATFORM\_HEADER\_NAME=Windows /DRHI\_RAYTRACING=1 /DWINDOWS\_MAX\_NUM\_TLS\_SLOTS=2048 /DWINDOWS\_MAX\_NUM\_THREADS\_WITH\_TLS\_SLOTS=512 /DNDEBUG=1 /DUE\_BUILD\_DEVELOPMENT=1 /DORIGINAL\_FILE\_NAME=“UnrealEditor-MyProject.dll” /DBUILD\_ICON\_FILE\_NAME=“"..\Build\Windows\Resources\Default.ico"” /DPROJECT\_COPYRIGHT\_STRING=“Fill out your copyright notice in the Description page of Project Settings.” /DPROJECT\_PRODUCT\_IDENTIFIER=MyProject /fo “C:/\_PROJECTS/UNREAL/MyProject/Intermediate/Build/Win64/x64/UnrealEditor/Development/MyProject/Default.rc2.res” “../Build/Windows/Resources/Default.rc2”

---

<div class="post-metadata">

**Author:** ![Vivraan](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Vivraan](https://forums.unrealengine.com/u/Vivraan)\
**Post date:** [August 25, 2025, 9:16pm UTC](https://forums.unrealengine.com/t/vs-2022-enterprise-pro-build-failure-ue5-6-exited-with-error-code-1-the-build-will-fail-any-advice/2633433/2 "2025-08-25T21:16:30Z")

</div>

> [@UE 5.6 project creation fails on Default.rc2 / rc.exe — exit code -1](https://forums.unrealengine.com/t/ue-5-6-project-creation-fails-on-default-rc2-rc-exe-exit-code-1/2595642/2):
>
> You can try forcing your SDK version in your buildconfiguration xml file Your project path\Saved\UnrealBuildTool\BuildConfiguration.xml \<?xml version="1.0" encoding="utf-8" ?\> \<Configuration xmlns="https://www.unrealengine.com/BuildConfiguration"\> \<WindowsPlatform\> \<WindowsSdkVersion\>10.0.22621.0\</WindowsSdkVersion\> \</WindowsPlatform\> \</Configuration\> 5.6 compiles ok on vs 2022 (v17.14.5)

So far this is the most up to date set of solutions.
