# How do I Enable LoadFromRemoteSources

**URL:** <https://forums.unrealengine.com/t/how-do-i-enable-loadfromremotesources/446241>\
**Category:** C++\
**Tags:** errors, unreal-engine, question, CPP\
**Created:** [March 29, 2019, 8:15pm UTC](https://forums.unrealengine.com/t/how-do-i-enable-loadfromremotesources/446241 "2019-03-29T20:15:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![YoAvrageBiTz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@YoAvrageBiTz](https://forums.unrealengine.com/u/YoAvrageBiTz)\
**Post date:** [March 29, 2019, 8:15pm UTC](https://forums.unrealengine.com/t/how-do-i-enable-loadfromremotesources/446241/1 "2019-03-29T20:15:51Z")

</div>

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](http://go.microsoft.com/fwlink/?LinkId=155569) 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.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_4f1e6bfe](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_4f1e6bfe](https://forums.unrealengine.com/u/anonymous_user_4f1e6bfe)\
**Post date:** [July 21, 2020, 6:10pm UTC](https://forums.unrealengine.com/t/how-do-i-enable-loadfromremotesources/446241/2 "2020-07-21T18:10:56Z")

</div>

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/](https://stackoverflow.com/a/)

Reposting it, as seen on SO.

* * *

Adding the `loadFromRemoteSources` [switch](https://msdn.microsoft.com/en-us/library/dd409252(VS.100).aspx) to **[machine.config](https://msdn.microsoft.com/en-us/library/ms229697(v=vs.90).aspx)** 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](https://stackoverflow.com/questions/2325473/where-is-machine-config):

**32-bit**

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

```

**64-bit**

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

```
