2
我正嘗試在Crystal報告中輸入與其編輯掩碼不匹配的參數值。它會引發報告應用程序服務器失敗錯誤。無論如何要捕捉這個異常並拋出一個用戶可理解的異常。問題是,堆棧跟蹤不顯示我的code.By過程中的任何部分我的代碼是寫在.NET報告應用程序服務器失敗
System.Runtime.InteropServices.COMException: The Report Application Server failed at CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass.GetParamPromptingInfo(PromptingRequestInfo promptingRequestInfo, Object& promptingUnits, Object& promptingInfoProvider) : Line 0 at CrystalDecisions.ReportSource.EromReportSourceBase.DoParameterPrompting(PromptingRequestContext reqContext) : Line 0 at CrystalDecisions.Web.ReportAgent+ReportClosedExceptionHandlingReportSource.DoParameterPrompting(PromptingRequestContext reqContext) : Line 0 at CrystalDecisions.Web.ReportAgentBase.DoPrompting(PromptingHTMLRenderOption htmlOption) : Line 0 at CrystalDecisions.Web.Components.ParamComponent.ShowFullPrompt() : Line 0 at CrystalDecisions.Web.Components.ParamComponentBase.HandleException(Exception e) : Line 0 at CrystalDecisions.Web.CrystalReportViewer.HandleExceptionAndPromptIfNeeded(Exception x, EnumAspNetLifeCycleStage stage) : Line 0 at CrystalDecisions.Web.CrystalReportViewer.OnPreRender(EventArgs e) : Line 0 at System.Web.UI.Control.PreRenderRecursiveInternal() : Line 0 at System.Web.UI.Control.PreRenderRecursiveInternal() : Line 0 at System.Web.UI.Control.PreRenderRecursiveInternal() : Line 0 at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) : Line 0
您可以嘗試按Ctrl + Alt + E打開「例外」窗口,然後選中「公共語言運行時例外」複選框。這將有希望縮小_where_這個異常正在拋出你的代碼。 – gunr2171
您如何在視圖中顯示報告? – gunr2171