How do I Enable LoadFromRemoteSources

Cut Down version of build (Important Info): 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.

I have checked the link it gave to me and its not spacific were I should put this code:

  <loadFromRemoteSources enabled="true"/>

And when I try to put it were Unreal tells me to and I do a build it says: illegal text frame.
If anyone could help please do.

I found myself in the same position. The solution I found appears to be the nuclear option to globally enable the option. This solution was found on SO here: https://stackoverflow.com/a/

Reposting it, as seen on SO.


Adding the loadFromRemoteSources switch to machine.config solved the problem.

MSDN

The loadFromRemoteSources element specifies whether assemblies from remote sources should be granted full trust.

Example

<configuration>
    <runtime>
       <loadFromRemoteSources enabled="true"/>
   </runtime>
</configuration>

You can find machine.config here:

32-bit

%windir%\Microsoft.NET\Framework\[version]\config\machine.config

64-bit

%windir%\Microsoft.NET\Framework64\[version]\config\machine.config