Recently, we performed a migration of the SCCM database from Microsoft SQL Server 2016 to SQL Server 2019. As part of the migration process, it was also necessary to upgrade SQL Server Reporting Services (SSRS), which is used by the SCCM Reporting Services Point role.
Overall, the migration completed successfully and followed the documented procedure. However, after the upgrade, several SCCM reports began failing with the following error:
System.Web.Services.Protocols.SoapException: Failed to load expression host assembly. Details: Could not load file or assembly “SrsResources, Culture=neutral” or one of its dependencies. The system cannot find the file specified.
Cause
The issue was caused by a missing SrsResources.dll file. For some reason, reinstalling the Reporting Services Point role did not copy the library from:
C:\Program Files\SMS_SRSRP\SrsResources.dll
to the SSRS binary directory:
C:\Program Files\Microsoft SQL Server Reporting Services\SSRS\ReportServer\bin\
Resolution Step 1: Restore the Missing Library
Manually copy SrsResources.dll from the SCCM Reporting Services Point installation directory to the SSRS ReportServer\bin directory.
After copying the file, the original error was resolved, but a new error appeared when opening reports:
System.Web.Services.Protocols.SoapException: The DefaultValue expression for the report parameter ‘UserTokenSIDs’ contains an error: That assembly does not allow partially trusted callers.
Cause of the Second Error
By default, SSRS was preventing the SCCM assembly from being loaded under the required trust level.
Resolution Step 2: Modify SSRS Security Policy
To resolve the issue, it was necessary to edit the following file:
C:\Program Files\Microsoft SQL Server Reporting Services\SSRS\ReportServer\rssrvpolicy.config
Near the end of the file, add the required policy entry that grants the SCCM reporting assembly the necessary permissions:
<CodeGroup class="UnionCodeGroup" version="1" PermissionSetName="FullTrust" Name="SRSResources"><IMembershipCondition class="UrlMembershipCondition" version="1" Url="C:\Program Files\Microsoft SQL Server Reporting Services\SSRS\ReportServer\bin\SrsResources.dll" />
</CodeGroup>
After saving the changes, restart the SQL Server Reporting Services service.
Result
Once the security policy was updated and the SSRS service was restarted, all SCCM reports began working normally again.
Summary
If SCCM reports fail after migrating to SQL Server 2019 and upgrading SSRS, verify the following:
- SrsResources.dll exists in the SSRS ReportServer\bin directory.
- The SCCM reporting assembly has the required permissions configured in rssrvpolicy.config.
These steps resolved both the assembly loading error and the partial trust security exception in our environment
