# An error occured while trying to generate project files

**URL:** <https://forums.unrealengine.com/t/an-error-occured-while-trying-to-generate-project-files/344107>\
**Category:** C++\
**Tags:** error, files, unreal-engine, question, CPP\
**Created:** [January 14, 2016, 7:30pm UTC](https://forums.unrealengine.com/t/an-error-occured-while-trying-to-generate-project-files/344107 "2016-01-14T19:30:46Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Derzo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Derzo](https://forums.unrealengine.com/u/Derzo)\
**Post date:** [January 14, 2016, 7:30pm UTC](https://forums.unrealengine.com/t/an-error-occured-while-trying-to-generate-project-files/344107/1 "2016-01-14T19:30:46Z")

</div>

When I try to generate project or generate new C++ class, it says this error.  
Some other people have been having this too, but I never solved it.

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/4/1/141d06fe3dcbb35c8860d9b1dd8d58c5cb182945.jpeg) ](https://i.imgur.com/SQV639c.jpg)

Any help? My visual studio is basicly useless right now.  
EDIT:  
I am going to custom install VS again with C++ compiler

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_41845f4a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_41845f4a](https://forums.unrealengine.com/u/anonymous_user_41845f4a)\
**Post date:** [January 14, 2016, 7:59pm UTC](https://forums.unrealengine.com/t/an-error-occured-while-trying-to-generate-project-files/344107/2 "2016-01-14T19:59:33Z")

</div>

Hello Derzo,

You shouldn’t need to reinstall Visual Studio 2015. If you’re using Community (Not Express) you should be able to navigate to your Control Panel \> Programs and Features \> Visual Studio 2015 and select “Change”. You can then hit “Modify” and expand “Programming Languages” to select “Visual C++”. After that, hit Update and everything should work correctly after that completes.

Hope this helps!

---

<div class="post-metadata">

**Author:** ![Derzo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Derzo](https://forums.unrealengine.com/u/Derzo)\
**Post date:** [January 14, 2016, 8:27pm UTC](https://forums.unrealengine.com/t/an-error-occured-while-trying-to-generate-project-files/344107/3 "2016-01-14T20:27:27Z")

</div>

Oh well, I downloaded installer and clicked “modify” and checked common tools for c++ and hit update. I guess it’s kind of same thing, but whatever. We’ll see if it will work as it should, thanks anyways!

---

<div class="post-metadata">

**Author:** ![Derzo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Derzo](https://forums.unrealengine.com/u/Derzo)\
**Post date:** [January 15, 2016, 5:32am UTC](https://forums.unrealengine.com/t/an-error-occured-while-trying-to-generate-project-files/344107/4 "2016-01-15T05:32:57Z")

</div>

Yay, I got it working!

---

<div class="post-metadata">

**Author:** ![vivimox5](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@vivimox5](https://forums.unrealengine.com/u/vivimox5)\
**Post date:** [August 15, 2024, 8:32pm UTC](https://forums.unrealengine.com/t/an-error-occured-while-trying-to-generate-project-files/344107/5 "2024-08-15T20:32:02Z")

</div>

Had the same problem, and it worked ! thanks for you help mate 🙂
