# ERROR: Unhandled exception: System.UnauthorizedAccessException: Access to the path .../.config/Unreal Engine is denied

**URL:** <https://forums.unrealengine.com/t/error-unhandled-exception-system-unauthorizedaccessexception-access-to-the-path-config-unreal-engine-is-denied/452281>\
**Category:** C++\
**Tags:** error, unreal-engine, UE4, CPP, question\
**Created:** [July 15, 2019, 12:05pm UTC](https://forums.unrealengine.com/t/error-unhandled-exception-system-unauthorizedaccessexception-access-to-the-path-config-unreal-engine-is-denied/452281 "2019-07-15T12:05:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![octorez8](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@octorez8](https://forums.unrealengine.com/u/octorez8)\
**Post date:** [July 15, 2019, 12:05pm UTC](https://forums.unrealengine.com/t/error-unhandled-exception-system-unauthorizedaccessexception-access-to-the-path-config-unreal-engine-is-denied/452281/1 "2019-07-15T12:05:31Z")

</div>

I experienced the following error when attempting to create a C++ project with the Unreal Engine 4.22 on a Mac running 10.14.3:

```
An error occurred while trying to generate project files.

Running Mono...

Setting up Mono
/Users/Shared/Epic Games/UE_4.22/Engine /Users/Shared/Epic Games/UE_4.22/Engine/Binaries/Mac
ERROR: Unhandled exception: System.UnauthorizedAccessException: Access to the path "/Users/orlandorodriguez/.config/Unreal Engine" is denied.
         at System.IO.Directory.CreateDirectoriesInternal (System.String path) [0x0005e] in <98fac219bd4e453693d76fda7bd96ab0>:0 
         at System.IO.Directory.CreateDirectory (System.String path) [0x0008f] in <98fac219bd4e453693d76fda7bd96ab0>:0 
         at System.IO.DirectoryInfo.Create () [0x00000] in <98fac219bd4e453693d76fda7bd96ab0>:0 
         at (wrapper remoting-invoke-with-check) System.IO.DirectoryInfo.Create()
         at System.IO.Directory.CreateDirectoriesInternal (System.String path) [0x00036] in <98fac219bd4e453693d76fda7bd96ab0>:0 
         at System.IO.Directory.CreateDirectory (System.String path) [0x0008f] in <98fac219bd4e453693d76fda7bd96ab0>:0 
         at Tools.DotNETCommon.DirectoryReference.CreateDirectory (Tools.DotNETCommon.DirectoryReference Location) [0x00000] in <b22dd851f46744ca937fbe8e0fdf569d>:0 
         at UnrealBuildTool.XmlConfig.CreateDefaultConfigFile (Tools.DotNETCommon.FileReference Location) [0x00006] in <c7fb050b4f244217befc2e7e25beaa73>:0 
         at UnrealBuildTool.XmlConfig.FindInputFiles () [0x00102] in <c7fb050b4f244217befc2e7e25beaa73>:0 
         at UnrealBuildTool.XmlConfig.ReadConfigFiles (Tools.DotNETCommon.FileReference OverrideCacheFile) [0x000d4] in <c7fb050b4f244217befc2e7e25beaa73>:0 
         at UnrealBuildTool.UnrealBuildTool.Main (System.String[] ArgumentsArray) [0x001d5] in <c7fb050b4f244217befc2e7e25beaa73>:0

```

- Open Terminal found in Finder \> Applications \> Utilities.
- In Terminal, paste the following: defaults write com.apple.finder AppleShowAllFiles YES.
- Press return.
- Hold the ‘Option/alt’ key, then right click on the Finder icon in the dock and click Relaunch.
- Set permissions for .config directory to Read and Write for the current user and/or admins.

I also experienced the same error when setting up and Source Control within the project. Now creating a C++ project and setting up a Source Control was done without issue.

I was wondering if there was a better way to resolve this and I hope this helps anyone that is having the same issue.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_1d4b16fc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_1d4b16fc](https://forums.unrealengine.com/u/anonymous_user_1d4b16fc)\
**Post date:** [August 2, 2019, 2:22am UTC](https://forums.unrealengine.com/t/error-unhandled-exception-system-unauthorizedaccessexception-access-to-the-path-config-unreal-engine-is-denied/452281/2 "2019-08-02T02:22:38Z")

</div>

Do you know the command prompt input for windows? Thanks!
