Unable to open editor for C++ type blank game due to rc.exe System Error: ServicingCommon.dll was not found

Clean install of Unreal Engine 5, fresh install of .NET SDK frameworks and runtimes…

This error always shows when attempting to open UE5 editor for new C++ blank game with no starter assets included:

“The code execution cannot proceed because ServicingCommon.dll was not found. Reinstalling the program may fix this problem.”

Even for any learning blueprint project, after generating a C++ function then when attempting to open UE5 editor same error shows.

Unable to launch the editor.

Windows 10

dotnet --list-sdks
3.1.418 [C:\Program Files\dotnet\sdk]
6.0.202 [C:\Program Files\dotnet\sdk]

Visual Studio 2022 community editor is showing individual components include the .NET Core 3.1 Runtime (LTS) is installed.

Suggestions?

The project could not be compiled. Would you like to open it in Visual Studio Code?

Here’s the log output…

Running F:/Epic Games/UE_5.0/Engine/Binaries/DotNET/UnrealBuildTool/UnrealBuildTool.exe Development Win64 -Project="P:/Unreal Projects/mine/Temp_DELETEME/Temp_DELETEME.uproject" -TargetType=Editor -Progress -NoEngineChanges -NoHotReloadFromIDE
Log file: C:\Users\jryko\AppData\Local\UnrealBuildTool\Log.txt
Creating makefile for Temp_DELETEMEEditor (no existing makefile)
@progress push 5%
Parsing headers for Temp_DELETEMEEditor
  Running UnrealHeaderTool "P:\Unreal Projects\mine\Temp_DELETEME\Temp_DELETEME.uproject" "P:\Unreal Projects\mine\Temp_DELETEME\Intermediate\Build\Win64\Temp_DELETEMEEditor\Development\Temp_DELETEMEEditor.uhtmanifest" -LogCmds="loginit warning, logexit warning, logdatabase error" -Unattended -WarningsAsErrors -abslog="C:\Users\jryko\AppData\Local\UnrealBuildTool\Log_UHT.txt" -installed
Reflection code generated for Temp_DELETEMEEditor in 13.267585 seconds
@progress pop
Building Temp_DELETEMEEditor...
Using Visual Studio 2022 14.31.31107 toolchain (P:\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.31.31103) and Windows 10.0.22000.0 SDK (C:\Program Files (x86)\Windows Kits\10).
[Adaptive Build] Excluded from Temp_DELETEME unity file: Temp_DELETEME.cpp, Temp_DELETEMEGameModeBase.cpp
Determining max actions to execute in parallel (4 physical cores, 8 logical cores)
  Executing up to 4 processes, one per physical core
Building 9 actions with 4 processes...
[1/9] Compile SharedPCH.Engine.ShadowErrors.cpp
[2/9] Compile Temp_DELETEME.cpp
[3/9] Compile Temp_DELETEME.init.gen.cpp
[4/9] Compile Temp_DELETEMEGameModeBase.gen.cpp
[5/9] Compile Temp_DELETEMEGameModeBase.cpp
[6/9] Resource Default.rc2
[6/9]Resource Default.rc2 - Error but no output
[6/9]Resource Default.rc2 - -1073741515 F:\Epic Games\UE_5.0\Engine\Source C:\Program Files (x86)\Windows Kits\10\bin\10.0.22000.0\x64\rc.exe /nologo /D_WIN64 /l 0x409 /I "." /I "P:\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.31.31103\INCLUDE" /I "C:\Program Files (x86)\Windows Kits\\4.8\include\um" /I "C:\Program Files (x86)\Windows Kits\10\include\10.0.22000.0\ucrt" /I "C:\Program Files (x86)\Windows Kits\10\include\10.0.22000.0\shared" /I "C:\Program Files (x86)\Windows Kits\10\include\10.0.22000.0\um" /I "C:\Program Files (x86)\Windows Kits\10\include\10.0.22000.0\winrt" /DIS_PROGRAM=0 /DUE_EDITOR=1 /DENABLE_PGO_PROFILE=0 /DUSE_VORBIS_FOR_STREAMING=1 /DUSE_XMA2_FOR_STREAMING=1 /DWITH_DEV_AUTOMATION_TESTS=1 /DWITH_PERF_AUTOMATION_TESTS=1 /DUNICODE /D_UNICODE /D__UNREAL__ /DIS_MONOLITHIC=0 /DWITH_ENGINE=1 /DWITH_UNREAL_DEVELOPER_TOOLS=1 /DWITH_UNREAL_TARGET_DEVELOPER_TOOLS=1 /DWITH_APPLICATION_CORE=1 /DWITH_COREUOBJECT=1 /DWITH_VERSE=0 /DUSE_STATS_WITHOUT_ENGINE=0 /DWITH_PLUGIN_SUPPORT=0 /DWITH_ACCESSIBILITY=1 /DWITH_PERFCOUNTERS=1 /DUSE_LOGGING_IN_SHIPPING=0 /DWITH_LOGGING_TO_MEMORY=0 /DUSE_CACHE_FREED_OS_ALLOCS=1 /DUSE_CHECKS_IN_SHIPPING=0 /DUSE_ESTIMATED_UTCNOW=0 /DWITH_EDITOR=1 /DWITH_IOSTORE_IN_EDITOR=1 /DWITH_SERVER_CODE=1 /DWITH_PUSH_MODEL=1 /DWITH_CEF3=1 /DWITH_LIVE_CODING=1 /DWITH_CPP_MODULES=0 /DWITH_CPP_COROUTINES=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" /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 /DNDEBUG=1 /DUE_BUILD_DEVELOPMENT=1 /DORIGINAL_FILE_NAME="UnrealEditor-Temp_DELETEME.dll" /DBUILT_FROM_CHANGELIST=19505902 /DBUILD_VERSION=++UE5+Release-5.0-CL-19505902 /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=Temp_DELETEME /fo "P:\Unreal Projects\mine\Temp_DELETEME\Intermediate\Build\Win64\UnrealEditor\Development\Temp_DELETEME\Default.rc2.res" "..\Build\Windows\Resources\Default.rc2"
1 Like

Solved my own problem by trying harder. Seriously, after reviewing the log output carefully and noticing this line…

Realized that the Visual Studio individual components tab wasn’t showing that .NET 4.8 SDK was installed, so I installed that and the targeting pack (not sure I need both)…

Then after a reboot of system (for good luck), was able to create a C++ project and it opened in the Unreal Editor.

Further…

For a previously opened learning project that I’d attempted adding a C++ function to, since there were apparently corrupted /Binaries and /Intermediate artifacts from before the necessary .NET SDK was installed…

I also had to first delete the Binaries and Intermediate folders previously created (could have used the build “Clean” task maybe?) and then rebuilt the project.

Successfully compiled the learning project with a C++ function added, then was able to again open the .uproject in Unreal Engine 5 editor. Now able to edit the project in Visual Studio, build, and also use the Unreal Engine editor as needed.

. o O (Dude, I’m beginning to wonder if I should stick to Blueprint… this ■■■■ is crazy… Developers are gods in this realm. )