UE4.27 Can't even package default FPS template! what am I doing wrong?

Hi-- help greatly appreciated please.
UE4.27
I tried to package my first game and it failed so I stripped it back and stripped it back to find the problem. I stripped it back so far in fact that all I had left was the FPS template as a brand new project completely untouched by me. I include the bottom end of the error log below from where it seems to be registering errors. Thank you in advance!!!

[2022.03.16-13.56.04:981][291]LogSlate: Window ‘Plugins’ being destroyed
[2022.03.16-13.56.04:986][291]LogSlate: Window ‘Plugins’ being destroyed
[2022.03.16-13.56.04:986][291]LogDirectoryWatcher: A directory notification for ‘…/…/…/Engine/Plugins/’ was aborted.
[2022.03.16-13.56.11:034][973]LogUObjectHash: Compacting FUObjectHashTables data took 0.44ms
[2022.03.16-13.56.28:064][973]LogMainFrame: Project requires temp target (DatasmithImporter plugin is enabled)
[2022.03.16-13.56.28:065][973]LogLauncherProfile: Unable to use promoted target - X:/AOMAME 2022 UNREAL CONTENT AND ASSETS/New folder (2)/AOMAME_7/Binaries/Win64/UE4Game.target does not exist.
[2022.03.16-13.56.28:146][973]UATHelper: Packaging (Windows (64-bit)): Running AutomationTool…
[2022.03.16-13.56.28:196][974]UATHelper: Packaging (Windows (64-bit)): Parsing command line: -ScriptsForProject=“X:/AOMAME 2022 UNREAL CONTENT AND ASSETS/New folder (2)/AOMAME_7/AOMAME_7.uproject” BuildCookRun -nocompileeditor -installed -nop4 -project=“X:/AOMAME 2022 UNREAL CONTENT AND ASSETS/New folder (2)/AOMAME_7/AOMAME_7.uproject” -cook -stage -archive -archivedirectory=“I:/Dropbox/CLWSTWR 2021-22 WORKING/PACKAGED AOMAME SPACES/PACKAGED TEST SPACE” -package -ue4exe=C:\EPICINSTALL\UE_4.27\Engine\Binaries\Win64\UE4Editor-Cmd.exe -compressed -ddc=InstalledDerivedDataBackendGraph -pak -prereqs -nodebuginfo -targetplatform=Win64 -build -clientconfig=Development -utf8output
[2022.03.16-13.56.28:486][ 5]UATHelper: Packaging (Windows (64-bit)): Setting up ProjectParams for X:\AOMAME 2022 UNREAL CONTENT AND ASSETS\New folder (2)\AOMAME_7\AOMAME_7.uproject
[2022.03.16-13.56.28:595][ 18]UATHelper: Packaging (Windows (64-bit)): AOMAME_7.uproject requires a temporary target.cs to be generated (DatasmithImporter plugin is enabled)
[2022.03.16-13.56.28:845][ 48]UATHelper: Packaging (Windows (64-bit)): ********** BUILD COMMAND STARTED **********
[2022.03.16-13.56.28:853][ 49]UATHelper: Packaging (Windows (64-bit)): Running: C:\EPICINSTALL\UE_4.27\Engine\Binaries\DotNET\UnrealBuildTool.exe AOMAME_7 Win64 Development -Project=“X:\AOMAME 2022 UNREAL CONTENT AND ASSETS\New folder (2)\AOMAME_7\AOMAME_7.uproject” “X:\AOMAME 2022 UNREAL CONTENT AND ASSETS\New folder (2)\AOMAME_7\AOMAME_7.uproject” -NoUBTMakefiles -remoteini=“X:\AOMAME 2022 UNREAL CONTENT AND ASSETS\New folder (2)\AOMAME_7” -skipdeploy -Manifest=“X:\AOMAME 2022 UNREAL CONTENT AND ASSETS\New folder (2)\AOMAME_7\Intermediate\Build\Manifest.xml” -NoHotReload -log=“C:\Users\info\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+EPICINSTALL+UE_4.27\UBT-AOMAME_7-Win64-Development.txt”
[2022.03.16-13.56.29:225][ 93]UATHelper: Packaging (Windows (64-bit)): ERROR: Unhandled exception: System.IO.FileLoadException: Could not load file or assembly ‘file:///X:\AOMAME 2022 UNREAL CONTENT AND ASSETS\New folder (2)\AOMAME_7\Intermediate\Build\BuildRules\AOMAME_7ModuleRules.dll’ or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)
[2022.03.16-13.56.29:225][ 93]UATHelper: Packaging (Windows (64-bit)): File name: ‘file:///X:\AOMAME 2022 UNREAL CONTENT AND ASSETS\New folder (2)\AOMAME_7\Intermediate\Build\BuildRules\AOMAME_7ModuleRules.dll’ —> System.NotSupportedException: An attempt was made to load an assembly from a network location which would have caused the assembly to be sandboxed in previous versions of the .NET Framework. This release of the .NET Framework does not enable CAS policy by default, so this load may be dangerous. If this load is not intended to sandbox the assembly, please enable the loadFromRemoteSources switch. See <loadFromRemoteSources> Element | Microsoft Docs for more information.
[2022.03.16-13.56.29:225][ 93]UATHelper: Packaging (Windows (64-bit)): at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
[2022.03.16-13.56.29:225][ 93]UATHelper: Packaging (Windows (64-bit)): at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
[2022.03.16-13.56.29:225][ 93]UATHelper: Packaging (Windows (64-bit)): at System.Reflection.Assembly.Load(AssemblyName assemblyRef, Evidence assemblySecurity)
[2022.03.16-13.56.29:225][ 93]UATHelper: Packaging (Windows (64-bit)): at System.CodeDom.Compiler.CompilerResults.get_CompiledAssembly()
[2022.03.16-13.56.29:225][ 93]UATHelper: Packaging (Windows (64-bit)): at UnrealBuildTool.DynamicCompilation.CompileAssembly(FileReference OutputAssemblyPath, HashSet1 SourceFileNames, List1 ReferencedAssembies, List1 PreprocessorDefines, Boolean TreatWarningsAsErrors) in D:\Build\++UE4\Sync\Engine\Source\Programs\UnrealBuildTool\System\DynamicCompilation.cs:line 399 [2022.03.16-13.56.29:225][ 93]UATHelper: Packaging (Windows (64-bit)): at UnrealBuildTool.DynamicCompilation.CompileAndLoadAssembly(FileReference OutputAssemblyPath, HashSet1 SourceFileNames, List1 ReferencedAssembies, List1 PreprocessorDefines, Boolean DoNotCompile, Boolean TreatWarningsAsErrors) in D:\Build++UE4\Sync\Engine\Source\Programs\UnrealBuildTool\System\DynamicCompilation.cs:line 469
[2022.03.16-13.56.29:225][ 93]UATHelper: Packaging (Windows (64-bit)): at UnrealBuildTool.RulesAssembly…ctor(RulesScope Scope, List1 BaseDirs, IReadOnlyList1 Plugins, Dictionary2 ModuleFileToContext, List1 TargetFiles, FileReference AssemblyFileName, Boolean bContainsEngineModules, Nullable1 DefaultBuildSettings, Boolean bReadOnly, Boolean bSkipCompile, RulesAssembly Parent) in D:\Build\++UE4\Sync\Engine\Source\Programs\UnrealBuildTool\System\RulesAssembly.cs:line 110 [2022.03.16-13.56.29:225][ 93]UATHelper: Packaging (Windows (64-bit)): at UnrealBuildTool.RulesCompiler.CreateProjectRulesAssembly(FileReference ProjectFileName, Boolean bUsePrecompiled, Boolean bSkipCompile) in D:\Build\++UE4\Sync\Engine\Source\Programs\UnrealBuildTool\System\RulesCompiler.cs:line 581 [2022.03.16-13.56.29:225][ 93]UATHelper: Packaging (Windows (64-bit)): at UnrealBuildTool.RulesCompiler.CreateTargetRulesAssembly(FileReference ProjectFile, String TargetName, Boolean bSkipRulesCompile, Boolean bUsePrecompiled, FileReference ForeignPlugin) in D:\Build\++UE4\Sync\Engine\Source\Programs\UnrealBuildTool\System\RulesCompiler.cs:line 644 [2022.03.16-13.56.29:225][ 93]UATHelper: Packaging (Windows (64-bit)): at UnrealBuildTool.UEBuildTarget.Create(TargetDescriptor Descriptor, Boolean bSkipRulesCompile, Boolean bUsePrecompiled) in D:\Build\++UE4\Sync\Engine\Source\Programs\UnrealBuildTool\Configuration\UEBuildTarget.cs:line 675 [2022.03.16-13.56.29:225][ 93]UATHelper: Packaging (Windows (64-bit)): at UnrealBuildTool.BuildMode.CreateMakefile(BuildConfiguration BuildConfiguration, TargetDescriptor TargetDescriptor, ISourceFileWorkingSet WorkingSet) in D:\Build\++UE4\Sync\Engine\Source\Programs\UnrealBuildTool\Modes\BuildMode.cs:line 600 [2022.03.16-13.56.29:225][ 93]UATHelper: Packaging (Windows (64-bit)): at UnrealBuildTool.BuildMode.Build(List1 TargetDescriptors, BuildConfiguration BuildConfiguration, ISourceFileWorkingSet WorkingSet, BuildOptions Options, FileReference WriteOutdatedActionsFile, Boolean bSkipPreBuildTargets) in D:\Build++UE4\Sync\Engine\Source\Programs\UnrealBuildTool\Modes\BuildMode.cs:line 257
[2022.03.16-13.56.29:225][ 93]UATHelper: Packaging (Windows (64-bit)): at UnrealBuildTool.BuildMode.Execute(CommandLineArguments Arguments) in D:\Build++UE4\Sync\Engine\Source\Programs\UnrealBuildTool\Modes\BuildMode.cs:line 226
[2022.03.16-13.56.29:225][ 93]PackagingResults: Error: Unhandled exception: System.IO.FileLoadException: Could not load file or assembly ‘file:///X:\AOMAME 2022 UNREAL CONTENT AND ASSETS\New folder (2)\AOMAME_7\Intermediate\Build\BuildRules\AOMAME_7ModuleRules.dll’ or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)
[2022.03.16-13.56.29:225][ 93]UATHelper: Packaging (Windows (64-bit)): at UnrealBuildTool.UnrealBuildTool.Main(String[] ArgumentsArray) in D:\Build++UE4\Sync\Engine\Source\Programs\UnrealBuildTool\UnrealBuildTool.cs:line 557
[2022.03.16-13.56.29:253][ 97]UATHelper: Packaging (Windows (64-bit)): Took 0.4029996s to run UnrealBuildTool.exe, ExitCode=6
[2022.03.16-13.56.29:253][ 97]UATHelper: Packaging (Windows (64-bit)): UnrealBuildTool failed. See log for more details. (C:\Users\info\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+EPICINSTALL+UE_4.27\UBT-AOMAME_7-Win64-Development.txt)
[2022.03.16-13.56.29:261][ 98]UATHelper: Packaging (Windows (64-bit)): AutomationTool exiting with ExitCode=6 (6)
[2022.03.16-13.56.29:273][ 99]UATHelper: Packaging (Windows (64-bit)): BUILD FAILED
[2022.03.16-13.56.29:273][ 99]PackagingResults: Error: Unknown Error
[2022.03.16-13.56.30:972][290]LogSlate: Took 0.000133 seconds to synchronously load lazily loaded font ‘…/…/…/Engine/Content/Slate/Fonts/DroidSansMono.ttf’ (77K)
[2022.03.16-13.59.08:910][822]LogWindows: LaunchFileInExternalEditor X:/AOMAME 2022 UNREAL CONTENT AND ASSETS/New folder (2)/AOMAME_7/Saved/Logs/AOMAME_7_2.log
[2022.03.16-13.59.08:993][822]LogWindows: Launch application code for X:/AOMAME 2022 UNREAL CONTENT AND ASSETS/New folder (2)/AOMAME_7/Saved/Logs/AOMAME_7_2.log : 42

Did you try to ‘Launch’ your project first? I can’t tell you what the error log says, but sometimes when I get an error after packaging the project I launch it first. Afterwards it works fine …

Hey Pantoth-- thanks
I am packaging with the Engine open on the level I am exporting
Is that what you mean?

That button:
image

It starts your game, but with some extra stuff. (somehow like it was packaged before. Don’t know :D)

Will try-- thank you

Getting the same errors
Any other thoughts?

That is what I could find about the ExitCode=6

Thank you-- will try that too

I have moved the level to Unreal 5 EA2
Now getting this error-- seems more specific

Missing .net runtime installation? Maybe that link leads you to a page where you can download+install the latest .net version? Normally, at least I believe, that stuff comes with the installation of Visual Studio + the Unreal Engine presets coming with it.

Thanks-- Am giving it a go:)

Thanks!-- that worked:))

1 Like