An error occurred in the Microsoft .NET Framework while trying to load assembly id %1!s!. The server may be running out of ...

An error occurred in the Microsoft .NET Framework while trying to load assembly id %1!s!. The server may be running out of resources, or the assembly may not be trusted with PERMISSION_SET = EXTERNAL_ACCESS or UNSAFE. Run the query again, or check documentation to see how to solve the assembly trust issues. For more information about this error: %2!s!