In my ASP.NET MVC application, I sometimes get these errors when I try to open or create LocalReport from the Microsoft Reporting Services assembly:
Microsoft.Reporting.WebForms.LocalProcessingException: An error occurred during a local processing report. ---> Microsoft.Reporting.DefinitionInvalidException: Report definition 'C: \ Inetpub \ Wwwroot \\ Orders reports \ Reports \ Pending Renewals.rdlc' is invalid. ---> Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: An unexpected error occurred in the report Error Handling. ---> System.UnauthorizedAccessException: Access to path 'C: \ WINDOWS \ TEMP \ expression_host_b5ec9f67a3ab42cfb53a75588aed6f75.dll' is denied.
or
System.Web.HttpUnhandledException: An exception of type 'System.Web.HttpUnhandledException' was thrown. ---> Microsoft.Reporting.WebForms.LocalProcessingException: An error occurred during a local processing report. ---> Microsoft.Reporting.DefinitionInvalidException: The report definition 'Home Report' is invalid. ---> Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: An unexpected error occurred in the report Processing. ---> System.UnauthorizedAccessException: Access to path 'C : \ WINDOWS \ TEMP \ expression_host_a1670a6e6b96411790645cb12e50897d.dll is denied.
What is the reason? It works most of the time, so this is not a security issue. How to fix it?
Here is what I found , but I would not want to use the "use fields instead of report parameters" solution.
source share