Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine. Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".我用的是vs2005下 的水晶表表  在本机上运行没问题  但是在服务器上发表就报错。 错误如上
请高人帮忙  怎么解决啊??? 我是首次用水晶报表 
问题解决马上给分!!!! 万分感谢!!

解决方案 »

  1.   


    <!-- Web.Config Configuration File --><configuration>
        <system.web>
            <customErrors mode="Off"/>
        </system.web>
    </configuration>
     
    还有就是报这个错误!!!  
      

  2.   

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: CrystalDecisions.CrystalReports.Engine.LoadSaveReportException: Invalid report file path.Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.  Stack Trace: 
    [LoadSaveReportException: Invalid report file path.]
       CrystalDecisions.CrystalReports.Engine.EngineExceptionUtils.DoThrowException(String message, EngineExceptionErrorID id) +37
       CrystalDecisions.CrystalReports.Engine.ExceptionThrower.ThrowEngineException(String messageID, EngineExceptionErrorID id) +190
       CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob) +144
       CrystalDecisions.CrystalReports.Engine.ReportDocument.EnsureLoadReport() +97
       CrystalDecisions.CrystalReports.Engine.ReportDocument.get_ReportDefinition() +45
       K_PayPlanRpt.Page_Load(Object sender, EventArgs e) +263
       System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +15
       System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +34
       System.Web.UI.Control.OnLoad(EventArgs e) +99
       System.Web.UI.Control.LoadRecursive() +47
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061 
    改过之后 出现新问题!!!!
      

  3.   

    在客户端需要安装Crystal Reports for .NET Framework 2.0和Microsoft Visual Studio 2005 Report Viewer才能正常浏览。发布时要在Prerequisites中找到这两个组件并打勾。
      

  4.   

    请问豌豆公主  Prerequisites 在什么地方选??
      

  5.   

    web的话,服务器里面要安装水晶报表.
      

  6.   

    在项目上点右键,选择属性-->发布(Publish),该界面上有 Prerequisites 按纽
      

  7.   

    上一种方法是让客户端自动下载安装水晶报表组件。
    还有一种,你在服务器装好水晶报表查看器,并在IIS的应用程序映射中加入该程序的映射地址。这样客户不安装也能使用报表。
      

  8.   

    好像是路径的错误:
    Invalid report file path. 
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: CrystalDecisions.CrystalReports.Engine.LoadSaveReportException: Invalid report file path.我是用如下方法取的路径:
    string reportPath = Server.MapPath("Crystal.rpt");
    customerReport.Load(reportPath);这样在服务器上能取到正确的路径吗??      还有 zhnzzy 说的打包的时候还需要把水晶报表的东东也打进去,是指什么东西??
    请大家再帮帮忙   解决问题马上结贴!!