# UnrealBuildTool : error : System.ComponentModel.Win32Exception (0x80004005) While build in Visual Studio

**URL:** <https://forums.unrealengine.com/t/unrealbuildtool-error-system-componentmodel-win32exception-0x80004005-while-build-in-visual-studio/459344>\
**Category:** C++\
**Tags:** error, build, unreal-engine, unrealbuildtool, Visual-Studio, CPP, question\
**Created:** [December 10, 2019, 7:45pm UTC](https://forums.unrealengine.com/t/unrealbuildtool-error-system-componentmodel-win32exception-0x80004005-while-build-in-visual-studio/459344 "2019-12-10T19:45:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![UnrealVerseGuru](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@UnrealVerseGuru](https://forums.unrealengine.com/u/UnrealVerseGuru)\
**Post date:** [December 10, 2019, 7:45pm UTC](https://forums.unrealengine.com/t/unrealbuildtool-error-system-componentmodel-win32exception-0x80004005-while-build-in-visual-studio/459344/1 "2019-12-10T19:45:08Z")

</div>

Hello, while hitting build I get this and nothing helps:

```
UnrealBuildTool : error : System.ComponentModel.Win32Exception (0x80004005): Nie można odnaleźć określonego pliku
1> w System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
1> w UnrealBuildTool.XGE.ExecuteTaskFile(String TaskFilePath, DataReceivedEventHandler OutputEventHandler, Int32 ActionCount) w D:\Build\++UE4\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\Executors\XGE.cs:wiersz 493
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.MakeFile.Targets(44,5): error MSB3075: The command ""D:\Epic Games\UE_4.22\Engine\Build\BatchFiles\Build.bat" UCppEditor Win64 Development -Project="D:\WC\UdemyCpp\UCpp.uproject" -WaitMutex -FromMsBuild" exited with code 5. Please verify that you have sufficient rights to run this command.
1>Done building project "UCpp.vcxproj" -- FAILED.

```

“Nie można odnaleźć określonego pliku” means: Cannot find specified file.

Visual Studio 2017 (tried with 2019, same problem).

Regenerating dlls Binaries, Intermediate etc. and visual studio file doesnt help

Compiling from UE throws same error.

Development Editor. Win64

Windows 10.0.16299.0 SDK

VisualStudioVersion = 16.0.28315.86

Other projects compile, only this one throw error.

Any help please ?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_9b2ee186](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_9b2ee186](https://forums.unrealengine.com/u/anonymous_user_9b2ee186)\
**Post date:** [February 26, 2021, 2:30pm UTC](https://forums.unrealengine.com/t/unrealbuildtool-error-system-componentmodel-win32exception-0x80004005-while-build-in-visual-studio/459344/2 "2021-02-26T14:30:48Z")

</div>

Did you slove this problem?

---

<div class="post-metadata">

**Author:** ![UnrealVerseGuru](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@UnrealVerseGuru](https://forums.unrealengine.com/u/UnrealVerseGuru)\
**Post date:** [February 27, 2021, 1:16pm UTC](https://forums.unrealengine.com/t/unrealbuildtool-error-system-componentmodel-win32exception-0x80004005-while-build-in-visual-studio/459344/3 "2021-02-27T13:16:03Z")

</div>

o/ this was couple months ago, cant recall ;/ sorry

---

<div class="post-metadata">

**Author:** ![oliver\_rob](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/oliver_rob/32/88716_2.png) [@oliver\_rob](https://forums.unrealengine.com/u/oliver_rob)\
**Post date:** [September 9, 2021, 4:23pm UTC](https://forums.unrealengine.com/t/unrealbuildtool-error-system-componentmodel-win32exception-0x80004005-while-build-in-visual-studio/459344/4 "2021-09-09T16:23:20Z")

</div>

A bit late, but I had this exact problem, and fixed it by clicking File-\>Refresh Visual Studio Code Project in the Unreal Editor. Hope this helps to anyone else with this problem.
