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?
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
I tried following solution in Visual studio 2013 and it worked,
An error occurred during local report processing.
The problem occurred when I include parameters in the table in RDLC and try to debug
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.