2017-10-20 8 views
2

Crystal Reportsのパラメータに編集マスクと一致しない値を入力しようとしています。レポートアプリケーションサーバーにエラーが発生しました。とにかくこの例外をキャッチし、ユーザーにわかりやすい例外をスローしますか?問題は、私のコードがReport Application Serverに失敗しました

 
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 
+0

Ctrl + Alt + Eキーを押して例外ウィンドウを開き、共通言語ランタイム例外のチェックボックスをオンにすることができます。これはうまくいけば、あなたのコードにこの例外がスローされているところです。 – gunr2171

+0

ビューにレポートをどのように表示していますか? – gunr2171

答えて

0

Asp.netのReportViewer uはハンドルとエラーをカスタマイズすることができReportErrorイベントがあり、.NETで書かれているスタックトレースが私のcode.By道のどの部分が表示されないということですOnReportError="ReportViewer1_OnReportError"

それはそのような何かを持っているかどうかを

チェックのCrystalReportViewer:

CrystalReportViewer.onHandleException or 
CrystalReportViewer.OnHandleExceptionAndPromptIfNeeded 

HandleException() Fired when an exception occurs. 

REF:http://www.crystalreportsbook.com/Crystal_Reports_Net_Ch14_3.asp そのため、新鮮なドキュメントを見つけることは容易ではありません。

関連する問題