# UATHelper: Packaging (Windows): ERROR: System.UnauthorizedAccessException:

**URL:** <https://forums.unrealengine.com/t/uathelper-packaging-windows-error-system-unauthorizedaccessexception/256086>\
**Category:** Asset Creation\
**Tags:** unreal-engine, UE5-0\
**Created:** [October 16, 2021, 11:52am UTC](https://forums.unrealengine.com/t/uathelper-packaging-windows-error-system-unauthorizedaccessexception/256086 "2021-10-16T11:52:39Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![GPuthige](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@GPuthige](https://forums.unrealengine.com/u/GPuthige)\
**Post date:** [October 16, 2021, 11:52am UTC](https://forums.unrealengine.com/t/uathelper-packaging-windows-error-system-unauthorizedaccessexception/256086/1 "2021-10-16T11:52:39Z")

</div>

Hi  
I am trying to package an UE5 EA project and currently I am getting this error:

> UATHelper: Packaging (Windows): ERROR: System.UnauthorizedAccessException: Access to the path ‘C:\Users\gputh\AppData\Local\UnrealEngine\XmlConfigCache-C+Program Files+Epic Games+UE\_5.0EA.bin’ is denied.

This is apart from the “SDK not setup for Windows” pop-up, for which I followed the instruction to copy the “hostfxr.dll” package to DotNET/AutomationTools folder.

For the above error, I tried the following:

1. Verified the UE5 installation for any errors (from EPIC Launcher page
2. Changed properties of VS2017 & 2019 to “Run as Administrator”.

However, I continue to get this error.  
Any help is appreciated.

Regards  
GPuthige

---

<div class="post-metadata">

**Author:** ![Jimbohalo10](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jimbohalo10/32/961440_2.png) [@Jimbohalo10](https://forums.unrealengine.com/u/Jimbohalo10)\
**Post date:** [October 17, 2021, 12:01pm UTC](https://forums.unrealengine.com/t/uathelper-packaging-windows-error-system-unauthorizedaccessexception/256086/2 "2021-10-17T12:01:32Z")

</div>

Hi @GPuthige,  
Your violation is may be due to the fact that your Apps folder is still _hidden_ and inaccessible.

My picture shows the Windows Properties of the file

 ![Screenshot (102)](https://d3kjluh73b9h9o.cloudfront.net/original/3X/0/a/0aced2026432e5a5e2d6941ddb599fd4d04bf5f1.png)

This file contains a pointer to a file generated by the command GenerateProjectFiles.bat -2019 when building from the UE5EA2 source.

 ![Screenshot (103)](https://d3kjluh73b9h9o.cloudfront.net/original/3X/5/2/52821f5e29240917b6d000577d6f3ec0aa2a00e2.png)

The file can be copied from the original distribution kit, but I think the is a Win 10 file protection problem.  
When looking at the properties AppData security you should see your username and Administrator rights.

If you are running Windows 10 Pro in a domain, you will have to ask your IT security to adjust this.

---

<div class="post-metadata">

**Author:** ![GPuthige](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@GPuthige](https://forums.unrealengine.com/u/GPuthige)\
**Post date:** [October 18, 2021, 3:36am UTC](https://forums.unrealengine.com/t/uathelper-packaging-windows-error-system-unauthorizedaccessexception/256086/3 "2021-10-18T03:36:04Z")

</div>

Thanks a ton Jimbohalo10. Yes the file was hidden and I just unchecked to unhide it. Now the build has started.

However, I now have another issue that after all the compiling, the build failed with an error:  
Error: Cook failed.

The culprit this time seems to be  
“Assertion failed: IsValid() [File:C:\Program Files\Epic Games\UE\_5.0EA\Engine\Source\Runtime\Core\Public\Templates/SharedPointer.h] [Line: 890]”

Any suggestions on this?

Thanks in advance

Regards  
Gp

---

<div class="post-metadata">

**Author:** ![Jimbohalo10](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jimbohalo10/32/961440_2.png) [@Jimbohalo10](https://forums.unrealengine.com/u/Jimbohalo10)\
**Post date:** [October 18, 2021, 12:35pm UTC](https://forums.unrealengine.com/t/uathelper-packaging-windows-error-system-unauthorizedaccessexception/256086/4 "2021-10-18T12:35:25Z")

</div>

Hi @GPuthige,  
The version you are using is the binary version, whereas I am using the source version. I am using VS 2022 Preview, you will be using VS2017.

However, I believe the problem lies in Cooking and I think you have to do cooking first of all

 ![Screenshot (104)](https://d3kjluh73b9h9o.cloudfront.net/original/3X/d/2/d271e83eb1bfd25cb505cb0f139b0a1228846bff.png)  
If you cannot complete this, which will take about 40 minutes, then there is little that can be done.

I expect this may be the problem as the code seems to be looking for the packed cooking store.

There is little that can be done because my source builds the UE5EA2 won’t package. My repository [ue5-main] will package, but it takes 18 hours to build on AMD 6 core/16GB/SSD. It’s maintained by Epic each day and is the leading edge likely to break and needs VS 2022 Preview. It for hardcore developers like me!🕶🤣.

[Visual Studio 2022 Preview 4 now builds and runs [ue5-main-vs2022]](https://forums.unrealengine.com/t/visual-studio-2022-preview-4-now-builds-and-runs-ue5-main-vs2022/255060)  
For those developers, the answer in the source code is at about line 90

> - Implicit conversion of TSharedPtr/TSharedRef  
> to bool is not supported yet

Good Luck you will need it!

---

<div class="post-metadata">

**Author:** ![GPuthige](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@GPuthige](https://forums.unrealengine.com/u/GPuthige)\
**Post date:** [October 19, 2021, 2:44am UTC](https://forums.unrealengine.com/t/uathelper-packaging-windows-error-system-unauthorizedaccessexception/256086/5 "2021-10-19T02:44:34Z")

</div>

Thanks once again @Jimbohalo10 for the quick and detailed response. I guess I am a generation behind you and hope to be there some day soon 😀

I tried to ‘Cook content’ first before packing the project and as mentioned by you, this did not complete.  
After that I tried to package an blank project and the result was the same.

Some search later, I found that the culprit in this case could be the Quixel Bridge update for 5ea2. So, when I package the blank project without the Bridge plugin, it completes without any issue.

I am yet to try out the work-arounds mentioned to overcome this issue (since my scene has a lot of quixel materials), but I am sure this will be set right soon.

Not sure if this has any impact with the different process being adopted by you.

Regards  
Gp

---

<div class="post-metadata">

**Author:** ![Jimbohalo10](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jimbohalo10/32/961440_2.png) [@Jimbohalo10](https://forums.unrealengine.com/u/Jimbohalo10)\
**Post date:** [October 19, 2021, 6:18am UTC](https://forums.unrealengine.com/t/uathelper-packaging-windows-error-system-unauthorizedaccessexception/256086/6 "2021-10-19T06:18:30Z")

</div>

hi @GPuthige,  
This Quixel problems has been discussed a lot in some threads particularly this one  
[Updated Quixel Bridge Broke Packaging](https://forums.unrealengine.com/t/updated-quixel-bridge-broke-packaging/256053/6)  
Well at least you are getting somewhere with this 🙂

---

<div class="post-metadata">

**Author:** ![Jimbohalo10](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jimbohalo10/32/961440_2.png) [@Jimbohalo10](https://forums.unrealengine.com/u/Jimbohalo10)\
**Post date:** [October 19, 2021, 4:26pm UTC](https://forums.unrealengine.com/t/uathelper-packaging-windows-error-system-unauthorizedaccessexception/256086/7 "2021-10-19T16:26:30Z")

</div>

hi @GPuthige, My VS2022/VS2019 UE5 EA2 source code  
[Visual Studio 2022](https://forums.unrealengine.com/t/visual-studio-2022-preview-is-64-bit-and-compiles-and-runs-ue-5-0-ea-approximately-20-faster/237164)version _works_ with a blank project and the Quixel Bridge plugin.

I tried the [ue5-main] source version [[ue5-main-vs2022]](https://forums.unrealengine.com/t/visual-studio-2022-preview-4-now-builds-and-runs-ue5-main-vs2022/255060)and it worked as well they use version a later version

I know HoloLens 2 VR headset won’t package under the UE5 EA 2 Binary.

I don’t know why the binary version does not work

---

<div class="post-metadata">

**Author:** ![GPuthige](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@GPuthige](https://forums.unrealengine.com/u/GPuthige)\
**Post date:** [October 19, 2021, 4:50pm UTC](https://forums.unrealengine.com/t/uathelper-packaging-windows-error-system-unauthorizedaccessexception/256086/8 "2021-10-19T16:50:25Z")

</div>

Hi @Jimbohalo10. Thanks for taking time to check this out and for the update.

I am currently trying to see if my project works without using the bridge. Since it is a fairly big project, I need to clean up all the materials and other assets used in the scene first.

Would love to know how your test comes through.

Regards  
Gp

---

<div class="post-metadata">

**Author:** ![Jimbohalo10](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jimbohalo10/32/961440_2.png) [@Jimbohalo10](https://forums.unrealengine.com/u/Jimbohalo10)\
**Post date:** [October 20, 2021, 11:30am UTC](https://forums.unrealengine.com/t/uathelper-packaging-windows-error-system-unauthorizedaccessexception/256086/9 "2021-10-20T11:30:27Z")

</div>

## hi @GPuthige, This is what I have written to [support@quixel.com](mailto:support@quixel.com)

This is a report on behalf of 2 developers and 4 big users of Quixel Bridge

_Summary_  
There are many reports that the BINARY version of UE5 Early Access version 2  
does not work with the BINARY version of Quixel Bridge 2021.0.3  
whilst trying to Cook a package for Windows.

its specific to BINARY version

Version: 5.0.0-16682836+++UE5+Release-5.0-EarlyAccess and with the BINARY Bridge 2021.0.3

All the SOURCE code versions 5.0 EA2 or UE 5.1-main built by me using  
VS 2019/VS2017 or VS2022 RC1 Preview 5

ALL WORK with the Bridge 2021.0.3

* * *

The problem for the four big users of Quixel Bridge is they have converted them  
UE4 project to UE5.0 EA 2 with Quixel Bridge _2021.0.1_ using the BINARY versions  
now UE5.0 EA 2 with Quixel Bridge _2021.0.1_ using the BINARY does not work  
see crash dump below

They do NOT have access to the SOURCE version because they are not developers  
they don’t have of want the skill. There skill is in graphics design, taking models  
from Quixel Bridge and using them to package their design.

## The Problem and how we replicated the problem.

Download UE 5.0 from Epic Games Launcher -\>Unreal Engine → Library 5.0.0 Early Access 2  
Wait for Quixel Bridge to load it Queued and loads after UE5 for some strange reason.  
Open with the UE5 Early Access shortcut that’s on the desktop.

Go Games → Blank project → add project name and create the project.

From the File Menu → Plugins. in the plugins search bar type Bridge.  
Check that Bridge is enabled. Close Plugins Screen.

Click the double right arrows and Select Platform → Windows → Under Content Management Click Cook  
Click on the Show output button and watch the Output log  
Log starts with  
LogD3D11RHI: Loaded GFSDK\_Aftermath\_Lib.x64.dll  
LogICUInternationalization: ICU TimeZone Detection - Raw Offset: +0:00, Platform Override: ‘’  
LogPluginManager: Mounting plugin Bridge

After Approximately 420 seconds the cook will fail  
UATHelper: Cooking (Windows): LogShaderCompilers: Display: Shaders left to compile 0  
UATHelper: Cooking (Windows): LogOutputDevice: Warning:  
UATHelper: Cooking (Windows):  
UATHelper: Cooking (Windows): Script Stack (0 frames):  
UATHelper: Cooking (Windows):  
UATHelper: Cooking (Windows): LogWindows: Error: begin: stack for UAT  
UATHelper: Cooking (Windows): LogWindows: Error: === Critical error: ===  
UATHelper: Cooking (Windows): LogWindows: Error:  
UATHelper: Cooking (Windows): LogWindows: Error: Assertion failed: IsValid() [File:C:\Program Files\Epic Games\UE\_5.0EA\Engine\Source\Runtime\Core\Public\Templates/SharedPointer.h] [Line: 890]  
UATHelper: Cooking (Windows): LogWindows: Error:  
UATHelper: Cooking (Windows): LogWindows: Error:  
UATHelper: Cooking (Windows): LogWindows: Error:  
========================================the error is here below============================================  
UATHelper: Cooking (Windows): LogWindows: Error: [Callstack] 0x00007ff8f0100659 UnrealEditor-Bridge.dll!UnknownFunction   
UATHelper: Cooking (Windows): LogWindows: Error: [Callstack] 0x00007ff8f0100b33 UnrealEditor-Bridge.dll!UnknownFunction   
========================================the error is here Above============================================

UATHelper: Cooking (Windows): LogWindows: Error: [Callstack] 0x00007ff957b45c3a UnrealEditor-Core.dll!UnknownFunction   
UATHelper: Cooking (Windows): LogWindows: Error: [Callstack] 0x00007ff69aabff75 UnrealEditor-Cmd.exe!UnknownFunction   
UATHelper: Cooking (Windows): LogWindows: Error: [Callstack] 0x00007ff69aac0baf UnrealEditor-Cmd.exe!UnknownFunction   
UATHelper: Cooking (Windows): LogWindows: Error: [Callstack] 0x00007ff69aac0c0a UnrealEditor-Cmd.exe!UnknownFunction   
UATHelper: Cooking (Windows): LogWindows: Error: [Callstack] 0x00007ff69aad573d UnrealEditor-Cmd.exe!UnknownFunction   
UATHelper: Cooking (Windows): LogWindows: Error: [Callstack] 0x00007ff69aad7a3e UnrealEditor-Cmd.exe!UnknownFunction   
UATHelper: Cooking (Windows): LogWindows: Error: [Callstack] 0x00007ff98bfa7034 KERNEL32.DLL!UnknownFunction   
UATHelper: Cooking (Windows): LogWindows: Error: [Callstack] 0x00007ff98da22651 ntdll.dll!UnknownFunction   
UATHelper: Cooking (Windows): LogWindows: Error:  
UATHelper: Cooking (Windows): LogWindows: Error: end: stack for UAT  
PackagingResults: Error: begin: stack for UAT  
PackagingResults: Error: === Critical error: ===  
PackagingResults: Error: Assertion failed: IsValid() [File:C:\Program Files\Epic Games\UE\_5.0EA\Engine\Source\Runtime\Core\Public\Templates/SharedPointer.h] [Line: 890]

========================================the error is here below============================================  
PackagingResults: Error: [Callstack] 0x00007ff8f0100659 UnrealEditor-Bridge.dll!UnknownFunction   
PackagingResults: Error: [Callstack] 0x00007ff8f0100b33 UnrealEditor-Bridge.dll!UnknownFunction

========================================the error is here Above============================================

UATHelper: Cooking (Windows): Took 419.8644046s to run UnrealEditor-Cmd.exe, ExitCode=3  
UATHelper: Cooking (Windows): ERROR: Cook failed.  
UATHelper: Cooking (Windows): (see C:\Users\Owner\AppData\Roaming\Unreal Engine\AutomationTool\Logs\D+Program+Files+Epic+Games+UE\_5.0EA\Log.txt for full exception trace)  
PackagingResults: Error: Cook failed.

* * *

Now to prove the Cook build works WITHOUT the Bridge plugin.

Go Games → Blank project → add project name and create the new project2.

From the File Menu → Plugins. in the plugins search bar type Bridge.  
Uncheck that Bridge and therefore disable Bridge.  
Click the Restart Editor function  
Close Plugins Screen.

Click the double right arrows and Select Platform → Windows → Under Content Management Click Cook  
Click on the Show output button and watch the Output log  
Log starts with No Bridge Plugin loaded

LogPlatformFile: Not using cached read wrapper  
LogStats: Stats thread started at 0.229677  
LogD3D11RHI: Loaded GFSDK\_Aftermath\_Lib.x64.dll  
LogICUInternationalization: ICU TimeZone Detection - Raw Offset: +0:00, Platform Override: ‘’  
LogPluginManager: Mounting plugin MeshPainting \<— No Bridge Plugin loaded

UATHelper: Cooking (Windows): LogShaderCompilers: Display: Shaders left to compile 0  
UATHelper: Cooking (Windows): LogHttp: Display: cleaning up 0 outstanding Http requests.  
UATHelper: Cooking (Windows): LogContentStreaming: Display: There are 1 unreleased StreamingManagers  
UATHelper: Cooking (Windows): Took 16.176418299999998s to run UnrealEditor-Cmd.exe, ExitCode=0  
UATHelper: Cooking (Windows): \*\*\*\*\*\*\*\*\*\* COOK COMMAND COMPLETED \*\*\*\*\*\*\*\*\*\*  
UATHelper: Cooking (Windows): BUILD SUCCESSFUL  
UATHelper: Cooking (Windows): AutomationTool exiting with ExitCode=0 (Success)  
UATHelper: Cooking (Windows): Updating environment variables set by a Turnkey sub-process  
UATHelper: Cooking (Windows): The system cannot find the path specified.  
UATHelper: Cooking (Windows): The system cannot find the path specified.

# Final Summary

We the Elite Indie Epic Developers and Indie Support 🙂

Have no way to fix this BINARY problem, often we manage to convert graphics designers into developers using the source code versions  
by using my well-tested methods, and we the Indie Developers support them.  
But in most cases, they just want to fix their work with Mega Scans

Thanks  
Jimbo

---

<div class="post-metadata">

**Author:** ![GPuthige](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@GPuthige](https://forums.unrealengine.com/u/GPuthige)\
**Post date:** [October 20, 2021, 1:26pm UTC](https://forums.unrealengine.com/t/uathelper-packaging-windows-error-system-unauthorizedaccessexception/256086/10 "2021-10-20T13:26:32Z")

</div>

Wow! That’s a very detailed error escalation !!! Thanks once again for all the efforts taken on this by you @Jimbohalo10. Much Appreciated !! 👍 👍

BTW, I have been able to cook and compile my Project without using any Quixel materials and also by disabling the Bridge Plugin.

I am sure Quixel will take action on this soon.

Regards  
Gp

---

<div class="post-metadata">

**Author:** ![Jimbohalo10](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jimbohalo10/32/961440_2.png) [@Jimbohalo10](https://forums.unrealengine.com/u/Jimbohalo10)\
**Post date:** [October 21, 2021, 10:00pm UTC](https://forums.unrealengine.com/t/uathelper-packaging-windows-error-system-unauthorizedaccessexception/256086/11 "2021-10-21T22:00:08Z")

</div>

Hi @GPuthige,  
This has been fixed and an update made  
[Quixel Bridge 21.0.4 Update to Unreal 5.0 EA2 Epic Launcher Binary version](https://forums.unrealengine.com/t/quixel-bridge-21-0-4-update-to-unreal-5-0-ea2-epic-launcher-binary-version/257051)  
Thanks again Jimbo

---

<div class="post-metadata">

**Author:** ![GPuthige](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@GPuthige](https://forums.unrealengine.com/u/GPuthige)\
**Post date:** [October 22, 2021, 2:12am UTC](https://forums.unrealengine.com/t/uathelper-packaging-windows-error-system-unauthorizedaccessexception/256086/12 "2021-10-22T02:12:15Z")

</div>

Thanks once again @Jimbohalo10 for all the support. This is my first entry into the forum world, and already I am feeling part of the community.

Regards  
Gp

---

<div class="post-metadata">

**Author:** ![Jase2111](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jase2111/32/1194612_2.png) [@Jase2111](https://forums.unrealengine.com/u/Jase2111)\
**Post date:** [June 22, 2024, 6:42pm UTC](https://forums.unrealengine.com/t/uathelper-packaging-windows-error-system-unauthorizedaccessexception/256086/13 "2024-06-22T18:42:02Z")

</div>

You sir, are El Hombre. I was stuck for weeks with no clue with an annoying Unkown Cook Error, and nothing else worked to fix it.
