# Why am I getting these errors when trying to compile my code through Visual Studio 2022?

**URL:** <https://forums.unrealengine.com/t/why-am-i-getting-these-errors-when-trying-to-compile-my-code-through-visual-studio-2022/2172650>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, question\
**Created:** [December 5, 2024, 3:20am UTC](https://forums.unrealengine.com/t/why-am-i-getting-these-errors-when-trying-to-compile-my-code-through-visual-studio-2022/2172650 "2024-12-05T03:20:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Doodlebob\_Senpai](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Doodlebob\_Senpai](https://forums.unrealengine.com/u/Doodlebob_Senpai)\
**Post date:** [December 5, 2024, 3:20am UTC](https://forums.unrealengine.com/t/why-am-i-getting-these-errors-when-trying-to-compile-my-code-through-visual-studio-2022/2172650/1 "2024-12-05T03:20:20Z")

</div>

![Error1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/6/7/a677901ec2b1e0f1c8b47714080657cbece83a5d.png)  
 ![Error2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/3/f/63f839deee3ab699ccffe48773a2430e25ecaec4.png)

---

<div class="post-metadata">

**Author:** ![Jobbo751](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Jobbo751](https://forums.unrealengine.com/u/Jobbo751)\
**Post date:** [December 5, 2024, 2:48pm UTC](https://forums.unrealengine.com/t/why-am-i-getting-these-errors-when-trying-to-compile-my-code-through-visual-studio-2022/2172650/2 "2024-12-05T14:48:51Z")

</div>

I found an XML file in my project called **HotReload.state** in [projectfolder]\Intermediate\Build\Win64\u64[projectname]Editor\Development. (I am using UE5.5 on Windows so if you are using a different version/operating system it might be in a different location/name). If I open my file I can see it is valid XML. Yours might be corrupted.

Try deleting the file (back it up if you are worried) and compiling again.

---

<div class="post-metadata">

**Author:** ![Doodlebob\_Senpai](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Doodlebob\_Senpai](https://forums.unrealengine.com/u/Doodlebob_Senpai)\
**Post date:** [December 6, 2024, 1:28am UTC](https://forums.unrealengine.com/t/why-am-i-getting-these-errors-when-trying-to-compile-my-code-through-visual-studio-2022/2172650/3 "2024-12-06T01:28:22Z")

</div>

**THANK YOU!**

That worked!

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [January 5, 2025, 1:29am UTC](https://forums.unrealengine.com/t/why-am-i-getting-these-errors-when-trying-to-compile-my-code-through-visual-studio-2022/2172650/4 "2025-01-05T01:29:21Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
