Error: 10314, Severity: 16, State: 11 while someone trying to execute report from application end

Yashwant Vishwakarma 116 Reputation points
2021-08-20T06:15:16.393+00:00

Hi Folks,

I am getting below error when someone trying to execute report from application end
Error: 10314, Severity: 16, State: 11

Message
An error occurred in the Microsoft .NET Framework while trying to load assembly id 65541. 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 'updatexmlproperties, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' 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)

I checked below things:

  1. Trustworthy is on for respective database
  2. CLR is enabled
  3. Assembly for that database has unrestricted
  4. database has sa permissions

Can anyone suggest what I can do more to resolve this issue.
and above things are mentioned as solution but still I am getting this error, not able to fix issue

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
12,872 questions
{count} votes

2 answers

Sort by: Most helpful
  1. CathyJi-MSFT 21,096 Reputation points Microsoft Vendor
    2021-08-20T07:40:59.627+00:00

    Hi @Yashwant Vishwakarma ,

    Please change the respective database owner to ‘sa’

    USE [DatabaseName]  
    GO  
       
    EXEC sp_changedbowner 'sa'  
    GO  
    

    Quote from this MS document.


    If the response is helpful, please click "Accept Answer" and upvote it, as this could help other community members looking for similar thread.


  2. Erland Sommarskog 102.2K Reputation points
    2021-08-20T22:19:09.03+00:00

    I hope that you are aware of that setting a database owned by sa as TRUSTWORTHY can be a security risk. A user in that database with sufficient permissions can exploit that to become sysadmin.

    Which is the permission set for this assembly?

    What is the output of "SELECT @@version"?

    0 comments No comments