So I have a DLL that has a "using System". When I use this DLL in the SSRS report rdl as reference assembly, I would the error below (had to typed these as I cannot copy from the VS report preview):
"An error occurred during local report processing. The definition of the report '/[ReportName]' is invalid. Error in class instance declaration for class '[file and class name]': [BC30007] Reference required to assembly 'System.Runtime, Version=4.2.2.0, Culture=neutral, PulicKeyToken=b03f5f7f11d50a3a' containing the base class 'System.Object'. Add one to your project."
If I add the System.Runtime dll to the reports reference assembly, I get another error below:
"An error occurred during local report processing. The definition of the report '/[ReportName]' is invalid. An unexpected error occured while compiling expressions. Native compiler return value: '-1073741819".
Any thought on this?
I am using visual studio 2019. The same error comes up with 2022.