# Can not compile anyting related with C++ Exception: System.IO.DirectoryNotFoundException: Could not find a part of the path

**URL:** <https://forums.unrealengine.com/t/can-not-compile-anyting-related-with-c-exception-system-io-directorynotfoundexception-could-not-find-a-part-of-the-path/483409>\
**Category:** C++\
**Tags:** exception, unreal-engine, question\
**Created:** [May 15, 2021, 10:08am UTC](https://forums.unrealengine.com/t/can-not-compile-anyting-related-with-c-exception-system-io-directorynotfoundexception-could-not-find-a-part-of-the-path/483409 "2021-05-15T10:08:38Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![IntaxQ](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@IntaxQ](https://forums.unrealengine.com/u/IntaxQ)\
**Post date:** [May 15, 2021, 10:08am UTC](https://forums.unrealengine.com/t/can-not-compile-anyting-related-with-c-exception-system-io-directorynotfoundexception-could-not-find-a-part-of-the-path/483409/1 "2021-05-15T10:08:38Z")

</div>

I can not create a C++ class, can not create a C++ project and can not compile my C++ classes on my existing projects. When trying to create a C++ project I’m getting this error:

Error log

I tried to:

Reinstall the engine, reinstall the VS, reinstall the engine to another drive, reinstall the VS to another drive, remove regedit keys of UE4, give full permission to TEMP folder for my windows user, try to run everything as administrator

Been trying to solve this for 2 days sleeples but nothing was helpful. Thanks for reading.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_cb32910b](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_cb32910b](https://forums.unrealengine.com/u/anonymous_user_cb32910b)\
**Post date:** [May 15, 2021, 12:51pm UTC](https://forums.unrealengine.com/t/can-not-compile-anyting-related-with-c-exception-system-io-directorynotfoundexception-could-not-find-a-part-of-the-path/483409/2 "2021-05-15T12:51:12Z")

</div>

I had similar problem with accent in my user name, but your path:

C:\Users\AppData\Local\Temp\fqgubmrn\fqgubmrn.tmp

does not seem to have any one…maybe try with another user ?

---

<div class="post-metadata">

**Author:** ![IntaxQ](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@IntaxQ](https://forums.unrealengine.com/u/IntaxQ)\
**Post date:** [May 15, 2021, 1:20pm UTC](https://forums.unrealengine.com/t/can-not-compile-anyting-related-with-c-exception-system-io-directorynotfoundexception-could-not-find-a-part-of-the-path/483409/3 "2021-05-15T13:20:46Z")

</div>

I dont have any “fqgubmrn” folder in temp. But yes, my username is Kullanıcı and it uses “ı” and it doesnt exist in English, but compilers and some setup folders create new one with “i” and use it without any trouble. I was able to use Kullanıcı without any problem with UE since this problem appeared.

![338898-kullanicifolders.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/d/0/7d003f0a2c53f869e2dbd2729b02f8aee71fb324.png)

I will try to change my username or try with another user

---

<div class="post-metadata">

**Author:** ![IntaxQ](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@IntaxQ](https://forums.unrealengine.com/u/IntaxQ)\
**Post date:** [May 15, 2021, 1:30pm UTC](https://forums.unrealengine.com/t/can-not-compile-anyting-related-with-c-exception-system-io-directorynotfoundexception-could-not-find-a-part-of-the-path/483409/4 "2021-05-15T13:30:43Z")

</div>

I also found my UBT log about the path error: link text

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_cb32910b](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_cb32910b](https://forums.unrealengine.com/u/anonymous_user_cb32910b)\
**Post date:** [May 15, 2021, 1:36pm UTC](https://forums.unrealengine.com/t/can-not-compile-anyting-related-with-c-exception-system-io-directorynotfoundexception-could-not-find-a-part-of-the-path/483409/5 "2021-05-15T13:36:38Z")

</div>

C:\Users\AppData\Local\Temp\fqgubmrn\fqgubmrn.tmp

this path is mentionned in your first log.

Try to create at least the directory and an empty .tmp file.

---

<div class="post-metadata">

**Author:** ![IntaxQ](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@IntaxQ](https://forums.unrealengine.com/u/IntaxQ)\
**Post date:** [May 15, 2021, 4:45pm UTC](https://forums.unrealengine.com/t/can-not-compile-anyting-related-with-c-exception-system-io-directorynotfoundexception-could-not-find-a-part-of-the-path/483409/6 "2021-05-15T16:45:14Z")

</div>

Its solved!! I realized Windows (or UBT) treats as an user and my current user (Kullanıcı) can not access the first one. I tried to make the temp folder of shared and gave full access to my user. Now I am able to compile anything. You made me realize the problem, thank you very much!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_cb32910b](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_cb32910b](https://forums.unrealengine.com/u/anonymous_user_cb32910b)\
**Post date:** [May 15, 2021, 6:22pm UTC](https://forums.unrealengine.com/t/can-not-compile-anyting-related-with-c-exception-system-io-directorynotfoundexception-could-not-find-a-part-of-the-path/483409/7 "2021-05-15T18:22:32Z")

</div>

I am happy that I could help you !!
