An error occurred in the Microsoft .NET Framework while trying to load assembly id 65536

Nicky 121 Reputation points
2020-10-07T10:41:41.68+00:00

We have moved our SQL Database to SQL Server on Azure VM.

I have already ran these

USE SSISDB
GO
EXEC sp_changedbowner 'sa'

Alter database SSISDB SET Trustworthy ON

I am trying to deploy the package and create a folder but I still gettign this error:

An error occurred in the Microsoft .NET Framework while trying to load assembly id 65536. The server may be running out of resources, or the assembly may not be trusted. Run the query again, or check documentation to see how to solve the assembly trust issues. For more information about this error:
System.IO.FileLoadException: Could not load file or assembly 'microsoft.sqlserver.integrationservices.server, Version=13.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. An error relating to security occurred. (Exception from HRESULT: 0x8013150A)
System.IO.FileLoadException:
at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection)
at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
at System.Reflection.Assembly.Load(String assemblyString)
(Microsoft SQL Server, Error: 10314)

SQL Server Integration Services
SQL Server Integration Services
A Microsoft platform for building enterprise-level data integration and data transformations solutions.
2,702 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Gregory Liénard 111 Reputation points
    2021-08-04T08:48:03.633+00:00

    @Nicky I had the same problem. It's all about the order of execution:

    1. First make sure that the database is CLR enabled: USE [myDB]
      EXEC sp_configure 'clr enabled', 1
      RECONFIGURE
    2. Set it to thrusthworthy: ALTER DATABASE myDB SET TRUSTWORTHY ON;
    3. Change owner to SA: EXEC sp_changedbowner 'sa'

    That should do it.

    22 people found this answer helpful.

  2. Monalv-MSFT 5,926 Reputation points
    2020-10-08T01:24:57.753+00:00

    Hi @InderjeetKaur-3272,

    Could you please share the version of your SQL Server?

    May I know if you Install Integration Services(SSIS)?

    Best Regards,
    Mona

    ----------

    If the answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.