RDLC ,System.Web.HttpUnhandledException错误解决

ASP.NET 应用程序部署到服务器windows server 2003 64bit,iis 6 时,页面可以打开,但是RDLC报表页面无法打开,出现以下错误

错误发生位置: http://192.168.58.194:8000/Reports/FS4030101ManagementReport.aspx

错误消息: Exception of type 'System.Web.HttpUnhandledException' was thrown.

Stack Trace:
System.Web.HttpUnhandledException: Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> Microsoft.Reporting.WebForms.LocalProcessingException: An error occurred during local report processing. ---> Microsoft.Reporting.DefinitionInvalidException: The definition of the report 'Main Report' is invalid. ---> Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: An unexpected error occurred while compiling expressions. Native compiler return value:
[BC2001] file 'C:\WINDOWS\TEMP\s1ep6pxc.0.vb' could not be found. --- End of inner exception stack trace --- at Microsoft.Reporting.WebForms.LocalReport.CompileReport() at Microsoft.Reporting.WebForms.LocalReport.SetParameters(IEnumerable`1 parameters) at SwireBev.W101E.Web.Reports.FS4030101ManagementReport.BindReport() in D:\W101E\Version\V_0.0.1\SwireBev.W101E\SwireBev.W101E.Web\Reports\FS4030101ManagementReport.aspx.cs:line 48 at SwireBev.W101E.Web.Reports.FS4030101ManagementReport.btnSearch_Click(Object sender, EventArgs e) in D:\W101E\Version\V_0.0.1\SwireBev.W101E\SwireBev.W101E.Web\Reports\FS4030101ManagementReport.aspx.cs:line 57 at System.Web.UI.WebControls.Button.OnClick(EventArgs e) at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace --- at System.Web.UI.Page.HandleError(Exception e) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest() at System.Web.UI.Page.ProcessRequest(HttpContext context) at ASP.reports_fs4030101managementreport_aspx.ProcessRequest(HttpContext context) in c:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\root\8c9e15ab\fbfc6833\App_Web_wyvcg2ul.1.cs:line 0 at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

 

问题:

1.服务器是否需要安装reportviewer 2008sp1(程序是使用VS2008开发的)?

答复:如果条件允许最好安装report viewer 2008SP1

2.如果服务器不安装report viewer 2008SP1如何解决?

答复:拷贝已经几个DLL文件放到程序BIN目录下面,一起发布。

Microsoft.ReportViewer.Common.dll

Microsoft.ReportViewer.ProcessingObjectModel.dll

Microsoft.ReportViewer.WebForms.dll

3.如果以上两步都已经操作完毕,RDLC页面还是无法打开?

可以设置C:\WINDOWS\TEMP 文件夹的权限,添加NETWORK SERVICE用户,设置全部控制权限,

如果还是不行,可以添加everyone 用户,设置全部控制权限。

 

转载于:https://www.cnblogs.com/nosnowwolf/archive/2010/11/29/1891141.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值