RDLC: error processing local report

I am encountering a problem downloading the application to a file server,

If I ran a report included in my web application, the problem occurred:

An error occurred while processing the local report. The report definition "App_Reports \ sampleReport.rdlc" is incorrect. An unexpected error occurred while compiling expressions. The original value of the returned compiler: '[BC2001] file' C: \ Windows \ TEMP \ oxdarnay.0.vb 'was not found.

The problem occurred when I included this expression in a table in RDLC

=(Fields!Field1.Value + Fields!Field2.Value) - Fields!Field2.Value 

When I do not include this expression, the report works correctly without errors.

When I run it locally on my computer, including this expression, there is no problem, what could be the problem with this? Is IIS on the file server incorrectly configured?

+4
source share
3 answers

You must change the AppPool account for the user with write permissions to the TEMP directory.

Ref: ASP.NET ReportViewer Native value of the returned compiler: '[BC2001] file error

+5
source

I tried the following solution in Visual Studio 2013 and worked,

  • Go to IIS-> Application Pool.
  • Select the application pool on which your site is published.
  • Right-click and go to "Advanced Settings" → "Process Model" → "Identification" → click on the side button.
  • Select "Built-in Account"> select "LocalSystem-> Ok-> Ok.
  • Update application pool.
  • Done.
0
source

Decision:

  • Go to IIS
  • Check which application pool your project is running in .
  • My application using network services.
  • So go to the folder C:\Windows\
  • Right-click on the "Temp" folder .
  • Granting permissions will fix this.
0
source

Source: https://habr.com/ru/post/1489191/


All Articles