Hello.
I’m having issues trying to package a project that uses datasmith to import the assets.
The game works fine if I start from scratch and export just the default map but as soon as I enable datasmith plugin this error comes out:
System.IO.FileLoadException: Could not load file or assembly ‘file:///Q:\COVEMA\UE4\MyProject\Intermediate\Build\BuildRules\MyProjectModuleRules.dll’ or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)
I hope you can help me and thank you in advance for the answers
UATHelper: Packaging (Windows (64-bit)): Running AutomationTool...
UATHelper: Packaging (Windows (64-bit)): Parsing command line: -ScriptsForProject=Q:/COVEMA/UE4/MyProject/MyProject.uproject BuildCookRun -nocompile -nocompileeditor -installed -nop4 -project=Q:/COVEMA/UE4/MyProject/MyProject.uproject -cook -stage -archive -archivedirectory=C:/Users/Studio/Desktop -package -ue4exe="C:\Program Files\Epic Games\UE_4.24\Engine\
Binaries\Win64\UE4Editor-Cmd.exe" -pak -prereqs -nodebuginfo -targetplatform=Win64 -build -clientconfig=Development -utf8output
UATHelper: Packaging (Windows (64-bit)): Setting up ProjectParams for Q:\COVEMA\UE4\MyProject\MyProject.uproject
UATHelper: Packaging (Windows (64-bit)): MyProject.uproject requires a temporary target.cs to be generated (BlastPlugin plugin is enabled)
UATHelper: Packaging (Windows (64-bit)): ********** BUILD COMMAND STARTED **********
UATHelper: Packaging (Windows (64-bit)): Running: C:\Program Files\Epic Games\UE_4.24\Engine\Binaries\DotNET\UnrealBuildTool.exe MyProject Win64 Development -Project=Q:\COVEMA\UE4\MyProject\MyProject.uproject Q:\COVEMA\UE4\MyProject\MyProject.uproject -NoUBTMakefiles -remoteini="Q:\COVEMA\UE4\MyProject" -skipdeploy -Manifest=Q:\COVEMA\UE4\MyProject\Interme
diate\Build\Manifest.xml -NoHotReload -log="C:\Users\Studio\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_4.24\UBT-MyProject-Win64-Development.txt"
UATHelper: Packaging (Windows (64-bit)): ERROR: Unhandled exception: System.IO.FileLoadException: Could not load file or assembly 'file:///Q:\COVEMA\UE4\MyProject\Intermediate\Build\BuildRules\MyProjectModuleRules.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)
UATHelper: Packaging (Windows (64-bit)): File name: 'file:///Q:\COVEMA\UE4\MyProject\Intermediate\Build\BuildRules\MyProjectModuleRules.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 o
f 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 http://go.microsoft.com/fwlink/?LinkId=155569 for more information.
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)
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)
UATHelper: Packaging (Windows (64-bit)): at System.Reflection.Assembly.Load(AssemblyName assemblyRef, Evidence assemblySecurity)
UATHelper: Packaging (Windows (64-bit)): at System.CodeDom.Compiler.CompilerResults.get_CompiledAssembly()
UATHelper: Packaging (Windows (64-bit)): at UnrealBuildTool.DynamicCompilation.CompileAssembly(FileReference OutputAssemblyPath, HashSet`1 SourceFileNames, List`1 ReferencedAssembies, List`1 PreprocessorDefines, Boolean TreatWarningsAsErrors) in D:\Build\++UE4\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\System\DynamicCompilat
ion.cs:line 372
UATHelper: Packaging (Windows (64-bit)): at UnrealBuildTool.DynamicCompilation.CompileAndLoadAssembly(FileReference OutputAssemblyPath, HashSet`1 SourceFileNames, List`1 ReferencedAssembies, List`1 PreprocessorDefines, Boolean DoNotCompile, Boolean TreatWarningsAsErrors) in D:\Build\++UE4\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealBui
ldTool\System\DynamicCompilation.cs:line 442
UATHelper: Packaging (Windows (64-bit)): at UnrealBuildTool.RulesAssembly..ctor(RulesScope Scope, DirectoryReference BaseDir, IReadOnlyList`1 Plugins, Dictionary`2 ModuleFileToContext, List`1 TargetFiles, FileReference AssemblyFileName, Boolean bContainsEngineModules, Nullable`1 DefaultBuildSettings, Boolean bReadOnly, Boolean bSkipCompile, Rules
Assembly Parent) in D:\Build\++UE4\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\System\RulesAssembly.cs:line 115
UATHelper: Packaging (Windows (64-bit)): at UnrealBuildTool.RulesCompiler.CreateProjectRulesAssembly(FileReference ProjectFileName, Boolean bUsePrecompiled, Boolean bSkipCompile) in D:\Build\++UE4\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\System\RulesCompiler.cs:line 592
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\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\System\RulesCompiler.cs:line 654
UATHelper: Packaging (Windows (64-bit)): at UnrealBuildTool.UEBuildTarget.Create(TargetDescriptor Descriptor, Boolean bSkipRulesCompile, Boolean bUsePrecompiled) in D:\Build\++UE4\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\Configuration\UEBuildTarget.cs:line 604
UATHelper: Packaging (Windows (64-bit)): at UnrealBuildTool.BuildMode.CreateMakefile(BuildConfiguration BuildConfiguration, TargetDescriptor TargetDescriptor, ISourceFileWorkingSet WorkingSet) in D:\Build\++UE4\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\Modes\BuildMode.cs:line 433
UATHelper: Packaging (Windows (64-bit)): at UnrealBuildTool.BuildMode.Build(List`1 TargetDescriptors, BuildConfiguration BuildConfiguration, ISourceFileWorkingSet WorkingSet, BuildOptions Options, FileReference WriteOutdatedActionsFile) in D:\Build\++UE4\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\Modes\BuildMode.cs:line 220
UATHelper: Packaging (Windows (64-bit)): at UnrealBuildTool.BuildMode.Execute(CommandLineArguments Arguments) in D:\Build\++UE4\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\Modes\BuildMode.cs:line 192
UATHelper: Packaging (Windows (64-bit)): at UnrealBuildTool.UnrealBuildTool.Main(String] ArgumentsArray) in D:\Build\++UE4\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\UnrealBuildTool.cs:line 517
PackagingResults: Error: Unhandled exception: System.IO.FileLoadException: Could not load file or assembly 'file:///Q:\COVEMA\UE4\MyProject\Intermediate\Build\BuildRules\MyProjectModuleRules.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)
UATHelper: Packaging (Windows (64-bit)): Took 0.8600492s to run UnrealBuildTool.exe, ExitCode=5
UATHelper: Packaging (Windows (64-bit)): UnrealBuildTool failed. See log for more details. (C:\Users\Studio\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_4.24\UBT-MyProject-Win64-Development.txt)
UATHelper: Packaging (Windows (64-bit)): AutomationTool exiting with ExitCode=5 (5)
UATHelper: Packaging (Windows (64-bit)): BUILD FAILED
PackagingResults: Error: Unknown Error
LogSlate: Took 0.000206 seconds to synchronously load lazily loaded font '../../../Engine/Content/Slate/Fonts/DroidSansMono.ttf' (77K)