zoukankan      html  css  js  c++  java
  • 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 用户,设置全部控制权限。

     

  • 相关阅读:
    Hibernate事务代码规范写法
    关于hibernate插入数据时的乱码问题
    搭建hibernate环境(重点)
    接口测试概念以及用postman进行接口测试
    Atom编辑器之加快React开发的插件汇总
    如何搭建git服务器
    phpstorm 配置 xdebug调试工具
    linux 获取指定行范围文本内容
    odoo 创建一个qweb
    linux nohup 使用
  • 原文地址:https://www.cnblogs.com/nosnowwolf/p/1891141.html
Copyright © 2011-2022 走看看