M
Murugavel
Hi Guys,
I develope a one WebService for uploading the files to another service.It
is working fine upto file size is limitied that is 16 mb.if i am try to
upload the file which size is greater than 16 mb,i got the following error,
System.Net.WebException: The underlying connection was closed: Unable to
connect to the remote server.
at System.Net.HttpWebRequest.CheckFinalStatus()
at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
at System.Net.HttpWebRequest.GetResponse()
at ASP.webrequest_aspx.btnSubmit_Click(Object sender, EventArgs e)
i read the some resolution for that which is,
protected override WebRequest GetWebRequest(Uri uri)
{
HttpWebRequest webRequest = (HttpWebRequest) base.GetWebRequest(uri);
webRequest.KeepAlive = false;
return webRequest;
}
i found this code at
"http://support.microsoft.com/default.aspx?scid=kb;en-us;819450"
eventhough,i added this code to my reference.cs,still i am getting the above
error.
i am in very urgent.Kindly,help me.
thanks in advance.
I develope a one WebService for uploading the files to another service.It
is working fine upto file size is limitied that is 16 mb.if i am try to
upload the file which size is greater than 16 mb,i got the following error,
System.Net.WebException: The underlying connection was closed: Unable to
connect to the remote server.
at System.Net.HttpWebRequest.CheckFinalStatus()
at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
at System.Net.HttpWebRequest.GetResponse()
at ASP.webrequest_aspx.btnSubmit_Click(Object sender, EventArgs e)
i read the some resolution for that which is,
protected override WebRequest GetWebRequest(Uri uri)
{
HttpWebRequest webRequest = (HttpWebRequest) base.GetWebRequest(uri);
webRequest.KeepAlive = false;
return webRequest;
}
i found this code at
"http://support.microsoft.com/default.aspx?scid=kb;en-us;819450"
eventhough,i added this code to my reference.cs,still i am getting the above
error.
i am in very urgent.Kindly,help me.
thanks in advance.