By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,854 Members | 856 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,854 IT Pros & Developers. It's quick & easy.

Error "The underlying connection was closed: An unexpected error occurred on a "

P: n/a
Hi all

I am having one web service where in at a time of calling one webmethod

through client application i am continuously getting following error :-

The underlying connection was closed: An unexpected error occurred on a

receive
I tried with adding following code in reference.cs file :-
protected override WebRequest GetWebRequest(Uri uri)
{
HttpWebRequest webRequest = (HttpWebRequest) base.GetWebRequest (uri);
webRequest.KeepAlive = false;
webRequest.ProtocolVersion=HttpVersion.Version10;
return webRequest;

}
As well as i tried with increating connection timeout property in
default web side's property in IIS. But of no luck.

Can some one shed some light on this.
Please help me as this is very imp for me.
Immediate help will be truely apprecaited.
Thanks in advance.

Mar 9 '06 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.

Browse more .NET Framework Questions on Bytes