vb.net RDLC:本地报告处理过程中发生错误

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/17415765/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-17 14:06:24  来源:igfitidea点击:

RDLC: An error occurred during local report processing

asp.netvb.netrdlc

提问by Doflamingo Doquixote

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. An unexpected error occurred while compiling expressions. Native compiler return value: ‘[BC2001] file 'C:\Windows\TEMP\oxdarnay.0.vb' could not be found'.

本地报告处理期间发生错误。报告“App_Reports\sampleReport.rdlc”的定义无效。编译表达式时发生意外错误。本机编译器返回值:'[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没有正确配置?

回答by tezzo

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 本机编译器返回值:“[BC2001] 文件”错误

回答by Sushma Latthe

I tried following solution in Visual studio 2013 and it worked,

我在 Visual Studio 2013 中尝试了以下解决方案,它奏效了,

  1. GO to IIS->Application pool.
  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.
  5. Refresh Application pool.
  6. Finish.
  1. 转到 IIS-> 应用程序池。
  2. 选择发布站点的应用程序池。
  3. 右键单击并转到高级设置-> 流程模型-> 身份-> 单击侧边按钮。
  4. 选择内置帐户-> 选择本地系统-> 确定-> 确定。
  5. 刷新应用程序池。
  6. 结束。

回答by Jwala Koti Veerendranath Darsi

Solution:

解决方案:

  1. Go to 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\
  5. Right click on "Temp" Folder.
  6. Providing permissions will fix it.
  1. 转到 IIS
  2. 验证您的项目在哪个应用程序池上 运行
  3. 我的应用程序使用网络服务。
  4. 所以,现在去文件夹 C:\Windows\
  5. 右键单击“Temp”文件夹
  6. 提供权限将修复它。