Hi Friends,
I'm using Dataset.xsd with tableadapter and I'm doing a report using MS reporting service.
but the error is occurring
error: An error has occurred during report processing.
* Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding
How To Resolve TimeOut Error in Dataset.xsd
Thanx
Loading


Jignesh KumarRank #91 · 22.9K reputationPosted Aug 2, 2018, 9:23 AM EDT
Sunny SharmaRank #223 · 11.1K reputationPosted Oct 10, 2013, 2:17 AM EDT
Open Dataset.Designer.cs file and replace the following code:
---------------------------------------------------------------
protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
get {
if ((this._commandCollection == null)) {
this.InitCommandCollection();
}
return this._commandCollection;
}
}
----------------------------------------------------------------
with this one:
----------------------------------------------------------------
protected global::System.Data.SqlClient.SqlCommand[] CommandCollection
{
get
{
if ((this._commandCollection == null))
{
this.InitCommandCollection();
_commandCollection[0].CommandTimeout = 0;
}
_commandCollection[0].CommandTimeout = 0;
return this._commandCollection;
}
}
----------------------------------------------------------------
Hope it helps :)
Fidel H3 reputationPosted Nov 26, 2013, 10:57 AM EST
venkatesan r23 reputationPosted Aug 2, 2018, 4:48 AM EDT
venkatesan r23 reputationPosted Aug 2, 2018, 9:29 PM EDT
Jignesh KumarRank #91 · 22.9K reputationPosted Aug 2, 2018, 11:55 PM EDT