简体   繁体   English

RDLC:处理本地报表时出错

[英]RDLC: An error occurred during local report processing

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:如果我运行包含在我的 web 应用程序中的报告,则会出现问题:

An error occurred during local report processing.本地报告处理期间发生错误。 The definition of the report 'App_Reports\sampleReport.rdlc' is invalid.报告“App_Reports\sampleReport.rdlc”的定义无效。 An unexpected error occurred while compiling expressions.编译表达式时出现意外错误。 Native compiler return value: '[BC2001] file 'C:\Windows\TEMP\oxdarnay.0.vb' could not be found'.本机编译器返回值:'[BC2001] 文件 'C:\Windows\TEMP\oxdarnay.0.vb' 找不到'。

The problem occurred when I include this expression in the table in RDLC当我将此表达式包含在 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?文件服务器中的IIS是不是没有配置好?

You have to change the AppPool account to a user with write permissions to the TEMP directory. 您必须将AppPool帐户更改为具有TEMP目录写入权限的用户。

Link: ASP.NET ReportViewer Native compiler return value: '[BC2001] file' error 链接: ASP.NET ReportViewer Native编译器返回值:'[BC2001] file'错误

I tried following solution in Visual studio 2013 and it worked, 我尝试在Visual Studio 2013中使用以下解决方案并且它有效,

  1. GO to IIS->Application pool. 转到IIS->应用程序池。
  2. Select your application pool on which your site is published. 选择您的站点发布的应用程序池。
  3. Right click and go to Advanced setting->Process model->Identity->click on side button. 右键单击并转到高级设置 - >过程模型 - >标识 - >单击侧面按钮。
  4. Select Built-in account-> select LocalSystem->Ok->Ok. 选择Built-in account->选择LocalSystem-> Ok-> Ok。
  5. Refresh Application pool. 刷新应用程序池。
  6. Finish. 完。

Solution: 解:

  1. Go to IIS 转到IIS
  2. Verify on which application pool your project is running . 验证项目正在运行的应用程序池。
  3. My Application using Network services. 我的应用程序使用网络服务
  4. So, now go to folder C:\\Windows\\ 那么,现在转到文件夹C:\\Windows\\
  5. Right click on "Temp" Folder . 右键单击“Temp” 文件夹
  6. Providing permissions will fix it. 提供权限将解决它。

An error occurred during local report processing.本地报告处理期间发生错误。

The problem occurred when I include parameters in the table in RDLC and try to debug当我在 RDLC 的表中包含参数并尝试调试时出现问题

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM