RDLC: An error occurred during local report processing
asp.net, rdlc, vb.net
Solution
You have to change the AppPool account to a user with write permissions to the TEMP directory.
Link: ASP.NET ReportViewer Native compiler return value: ‘[BC2001] file’ error
Problem
I am encountering a problem when I upload my application in the file server, If I run the report that is included in my web application, a problem is occurred: An error occurred during local report processing. The definition of the report 'App_Reports\sampleReport.rdlc' is invalid. An unexpected error occurred while compiling expressions. Native compiler return value: ‘[BC2001] file 'C:\Windows\TEMP\oxdarnay.0.vb' could not be found’. The problem occurred when I include this expression in the table in RDLC ``` =(Fields!Field1.Value + Fields!Field2.Value) - Fields!Field2.Value ``` When I do not include that expression, the report is properly working with no errors. When I run it locally in my computer including that expression, there is no problem, what could be the possible problem with this? Is the IIS in the file server is not properly configured?