Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
SagarSalvi
Helper I
Helper I

PBI RS May 2023: An exception occurred when checking support for Safe Expressions Runtime

Hi,

 

We upgraded to PBI RS May 2023 and started seeing below error in report services log file whenever we try to upload a RDL report file. Note that everything works on UI. Even the report works fine. We are going to test placing this missing assembly in bin folder but just thought of checking with dev community.

library!ReportServer_0-15!1534!09/08/2023-18:08:43:: i INFO: Call to CreateReportAction(UntitledBlankReport, /Folder/Reports/SSALVI, False). User: SSRSAdmin.
processing!ReportServer_0-15!1534!09/08/2023-18:08:43:: e ERROR: An exception occurred when checking support for Safe Expressions Runtime. Details: System.IO.FileNotFoundException: Could not load file or assembly 'System.Collections.Immutable, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
File name: 'System.Collections.Immutable, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
at Microsoft.CodeAnalysis.VisualBasic.SyntaxFactory.ParseExpression(String text, Int32 offset, Boolean consumeFullText)
at Microsoft.ReportingServices.RdlExpressions.ExpressionInfoExtensions.GetAndCacheExpressionSyntax(ExpressionInfo expressionInfo)
at Microsoft.ReportingServices.RdlExpressions.SafeExpressionsValidator.ValidateExpression(ExpressionInfo expressionInfo)
at Microsoft.ReportingServices.RdlExpressions.VBExpressionParser.CheckSafeExpressionsRuntimeSupport(ExpressionInfo expressionInfo)

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].


4 REPLIES 4
SagarSalvi
Helper I
Helper I

Just FYI we copied the missing DLL with same version to bin folder and that reolved the issue. We do not see those DLL missing errors in reporting logs.  

andrewpirie
Resolver II
Resolver II

I'm also seeing this in the log files for the latest version of SSRS 2022 after upgrading from SSRS 2016. It seems to occur when we publish reports from Visual Studio.

 

An exception occurred when checking support for Safe Expressions Runtime. Details: System.IO.FileNotFoundException: Could not load file or assembly ''System.Collections.Immutable, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'' or one of its dependencies. The system cannot find the file specified.

An exception occurred when extracting info about expression usage. Details: System.IO.FileNotFoundException: Could not load file or assembly ''System.Collections.Immutable, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'' or one of its dependencies. The system cannot find the file specified.

@andrewpirie , did you manage to solve the issue? I'm having the exact same error

Apologies for the delayed response. Yes, I was able to find a copy of the Immutable DLL being referenced by @SagarSalvi , but with that in place it then errored on a missing reference to a Memory DLL whenever we publish a report. I couldn't find a copy in replacement for that DLL so gave up trying to fix it and excluded that error from any analysis or reporting.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.