2016-09-25 9 views
0

レポートを生成するとスタックトレース以下になっています。レポートはRDLCで設計されており、XSDファイルに接続しています。 XSDファイルは、SQLストアドプロシージャを使用してクエリを生成します。このレポートは完全に機能しますが、突然、上記のエラーが発生します。私はここで使用されるドットネットフレームワークは2.0である*****************タイムアウトが切れました。操作が完了する前にタイムアウト時間が経過しているか、サーバーが応答していません。

[SqlException (0x80131904): Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.] 
System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) +212 
System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +245 
System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +2843 
System.Data.SqlClient.SqlDataReader.SetMetaData(_SqlMetaDataSet metaData, Boolean moreInfo) +277 
System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +594 
System.Data.SqlClient.SqlDataReader.ConsumeMetaData() +127 
System.Data.SqlClient.SqlDataReader.get_MetaData() +112 
System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) +6340468 
System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async) +6341537 
System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) +424 
System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) +28 
System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) +211 
System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior) +19 
System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior) +19 
System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +221 
System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) +579 
System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) +181 
CSAccCustomerLedgerCurrencyWiseTableAdapters.CUSTOMER_RECEIPTTableAdapter.Fill(CUSTOMER_RECEIPTDataTable dataTable, String STARTCODE, String ENDCODE, Nullable`1 INDATE, Nullable`1 TODATE) +827 
Admin_ReportV.LoadCSAccCustomerCurrencyWiseReporting_RECEIPT(DateTime InToday, String StartCode, String EndCode, DateTime asOfDate, DateTime todate) +257 
Admin_ReportV.GetReportDatasource(LocalReport InLocalReport, String InReportName, DataSet InDataset, String FilterKey, Dictionary`2 values) +21220 
Admin_ReportV.loadCustomerCurrWiseReport(String filename, DataSet ds, Dictionary`2 values, String FilterKey) +405 
    Admin_ReportV.generateCustomerCurrWise(String AsOfDate, String fromcuscode, String tocuscode, String todate) +253 
Admin_ReportV.btnGenerate_Click(Object sender, EventArgs e) +4150 
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +115 
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +140 
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +29 
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2981 

答えて

0

私はその理由は、その中に、特定のレポートのデータの多数によるものだと思います場合は、単にReportViewer.aspx.csページ

adapter.SelectCommand.CommandTimeout = 0; 

をして、この行を追加していますが、大量のデータを持っている場合には、しばらく時間がかかりますが、それは、アダプタにプロパティコール「CommandTimeoutの」はありません

+0

動作します。 – Sudu

+0

それを試して、それは私のために働いている –

関連する問題

 関連する問題