Hello all,
We use reporting services via our website to display some reports to our
users. We had some problems with this in that we get occasional web
connection closed error. We were able to limit the number of times this error
came up by modifying the references.cs file and overriding the
GetWebRequest() method and setting the KeepAlive setting of the webrequest to
false. This helped to decrease the number of times error appeared but it
still occurs intermittently.
However, that's not the main problem. Now what we are trying to do is offer
the same functionality to our Web services users. Unfortunately through web
services we keep on getting webexception operation has timed out error.
Through the web site it works fine and both of them are calling the same
business object code. Has anybody seen anything like this before? Is it
because we are doing webservices call from a webservice? I tried to change
the webservices reference.cs and add:
protected override System.Net.WebRequest GetWebRequest(Uri uri)
{
Microsoft.Web.Services2.SoapWebRequest swr =
(Microsoft.Web.Services2.SoapWebRequest) base.GetWebRequest(uri);
swr.Timeout = -1;
return swr;
}
But it didn't help.
Any help would be much appreciated