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

查看:273
本文介绍了本地报告处理期间发生错误。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

本地报告处理期间发生错误。

报告'E:\ Markfed\Link_Report \OpeningStockReport.rdlc'的定义无效。

编译表达式时发生意外错误。本机编译器返回值:'[BC2012]无法打开'C:\ Windows \ TEMP \ expression_host_9c0eaa032bb64a25be60c4cccf4464f2.dll'用于写'。



i已添加全部低于dll



Microsoft.ReportViewer.Common.dll

Microsoft.ReportViewer.ProcessingObjectModel.dll

Microsoft .ReportViewer.WebForms.dll

Microsoft.ReportViewer.WinForms.dll



错误发生在server.in本地项目工作正常


我的尝试:



在本地项目工作中没有错误显示但是发生服务器错误

An error occurred during local report processing.
The definition of the report 'E:\Markfed\Link_Report\OpeningStockReport.rdlc' is invalid.
An unexpected error occurred while compiling expressions. Native compiler return value: ‘[BC2012] can't open 'C:\Windows\TEMP\expression_host_9c0eaa032bb64a25be60c4cccf4464f2.dll' for writing’.

i have added all below dll

Microsoft.ReportViewer.Common.dll
Microsoft.ReportViewer.ProcessingObjectModel.dll
Microsoft.ReportViewer.WebForms.dll
Microsoft.ReportViewer.WinForms.dll

error occurred on server.in local project work fine

What I have tried:

In local project work fine no error show but on server error occurred

推荐答案

该进程无法对文件夹 C:\ Windows \\\ TEMP 进行写入访问,这是因为是一个系统文件夹,需要管理权限才能读取和写入。



它在您的本地项目中运行表明您以管理员身份运行它(o r - 更糟糕的是 - 已经改变了文件夹的访问权限。)



您应该检查代码中哪个文件夹被定义为临时文件夹,而不是使用其中一个运行应用程序的用户的临时文件夹。
The process has no write access to the folder C:\Windows\TEMP which is expected because that is a system folder requiring administrative privileges for reading and writing.

That it works in your local project indicates that you are running it there as Administrator (or - even worse - has changed the access rights of the folder).

You should check where in your code that folder is defined as temporary folder instead of using one of the temporary folders of the user running the application.


这篇关于本地报告处理期间发生错误。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆