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

web service timeout!

P: n/a
Hi All,

I am using VS2005/wse3.0 in winform application and using web
services. When I try to write a large file say about 5 to 10 MB file
(large for me) I get an error something like the following; I found
bunch of postings on this. but they are old and for older WSE. I am
able to download the same file but this happens only when I try to
write the same file back. Could someone help me?
System.Net.WebException: The underlying connection was closed: An
unexpected error occurred on a send. ---System.IO.IOException:
Unable to write data to the transport connection: An established
connection was aborted by the software in your host machine. --->
System.Net.Sockets.SocketException: An established connection was
aborted by the software in your host machine
at System.Net.Sockets.Socket.MultipleSend(BufferOffse tSize[]
buffers, SocketFlags socketFlags)
at
System.Net.Sockets.NetworkStream.MultipleWrite(Buf ferOffsetSize[]
buffers)
--- End of inner exception stack trace ---
at
System.Net.Sockets.NetworkStream.MultipleWrite(Buf ferOffsetSize[]
buffers)
at System.Net.Security._SslStream.StartWriting(SplitW ritesState
splitWrite, SplitWriteAsyncProtocolRequest asyncRequest)
at System.Net.Security._SslStream.ProcessWrite(Buffer OffsetSize[]
buffers, SplitWriteAsyncProtocolRequest asyncRequest)
at System.Net.TlsStream.MultipleWrite(BufferOffsetSiz e[] buffers)
at System.Net.Connection.Write(ScatterGatherBuffers writeBuffer)
at System.Net.ConnectStream.ResubmitWrite(ConnectStre am oldStream,
Boolean suppressWrite)
--- End of inner exception stack trace ---
at
System.Web.Services.Protocols.WebClientProtocol.Ge tWebResponse(WebRequest
request)
at
System.Web.Services.Protocols.HttpWebClientProtoco l.GetWebResponse(WebRequest
request)
at
Microsoft.Web.Services3.WebServicesClientProtocol. GetResponse(WebRequest
request, IAsyncResult result)
at
Microsoft.Web.Services3.WebServicesClientProtocol. GetWebResponse(WebRequest
request)
at
System.Web.Services.Protocols.SoapHttpClientProtoc ol.Invoke(String
methodName, Object[] parameters)

Thanks.

Feb 2 '07 #1
Share this Question
Share on Google+
2 Replies


P: n/a
make sure you have this setting in ur web.config!

<system.web>
<httpRuntime maxRequestLength="1048576"></httpRuntime>
</system.web>

HTH

"DBC User" <db*****@gmail.comwrote in message
news:11**********************@s48g2000cws.googlegr oups.com...
Hi All,

I am using VS2005/wse3.0 in winform application and using web
services. When I try to write a large file say about 5 to 10 MB file
(large for me) I get an error something like the following; I found
bunch of postings on this. but they are old and for older WSE. I am
able to download the same file but this happens only when I try to
write the same file back. Could someone help me?
System.Net.WebException: The underlying connection was closed: An
unexpected error occurred on a send. ---System.IO.IOException:
Unable to write data to the transport connection: An established
connection was aborted by the software in your host machine. --->
System.Net.Sockets.SocketException: An established connection was
aborted by the software in your host machine
at System.Net.Sockets.Socket.MultipleSend(BufferOffse tSize[]
buffers, SocketFlags socketFlags)
at
System.Net.Sockets.NetworkStream.MultipleWrite(Buf ferOffsetSize[]
buffers)
--- End of inner exception stack trace ---
at
System.Net.Sockets.NetworkStream.MultipleWrite(Buf ferOffsetSize[]
buffers)
at System.Net.Security._SslStream.StartWriting(SplitW ritesState
splitWrite, SplitWriteAsyncProtocolRequest asyncRequest)
at System.Net.Security._SslStream.ProcessWrite(Buffer OffsetSize[]
buffers, SplitWriteAsyncProtocolRequest asyncRequest)
at System.Net.TlsStream.MultipleWrite(BufferOffsetSiz e[] buffers)
at System.Net.Connection.Write(ScatterGatherBuffers writeBuffer)
at System.Net.ConnectStream.ResubmitWrite(ConnectStre am oldStream,
Boolean suppressWrite)
--- End of inner exception stack trace ---
at
System.Web.Services.Protocols.WebClientProtocol.Ge tWebResponse(WebRequest
request)
at
System.Web.Services.Protocols.HttpWebClientProtoco l.GetWebResponse(WebReques
t
request)
at
Microsoft.Web.Services3.WebServicesClientProtocol. GetResponse(WebRequest
request, IAsyncResult result)
at
Microsoft.Web.Services3.WebServicesClientProtocol. GetWebResponse(WebRequest
request)
at
System.Web.Services.Protocols.SoapHttpClientProtoc ol.Invoke(String
methodName, Object[] parameters)

Thanks.

Feb 2 '07 #2

P: n/a
Thanks you and I will try and get back to you.
On Feb 2, 11:07 am, "Vai2000" <nos...@microsoft.comwrote:
make sure you have this setting in ur web.config!

<system.web>
<httpRuntime maxRequestLength="1048576"></httpRuntime>
</system.web>

HTH

"DBC User" <dbcu...@gmail.comwrote in message

news:11**********************@s48g2000cws.googlegr oups.com...
Hi All,
I am using VS2005/wse3.0 in winform application and using web
services. When I try to write a large file say about 5 to 10 MB file
(large for me) I get an error something like the following; I found
bunch of postings on this. but they are old and for older WSE. I am
able to download the same file but this happens only when I try to
write the same file back. Could someone help me?
System.Net.WebException: The underlying connection was closed: An
unexpected error occurred on a send. ---System.IO.IOException:
Unable to write data to the transport connection: An established
connection was aborted by the software in your host machine. --->
System.Net.Sockets.SocketException: An established connection was
aborted by the software in your host machine
at System.Net.Sockets.Socket.MultipleSend(BufferOffse tSize[]
buffers, SocketFlags socketFlags)
at
System.Net.Sockets.NetworkStream.MultipleWrite(Buf ferOffsetSize[]
buffers)
--- End of inner exception stack trace ---
at
System.Net.Sockets.NetworkStream.MultipleWrite(Buf ferOffsetSize[]
buffers)
at System.Net.Security._SslStream.StartWriting(SplitW ritesState
splitWrite, SplitWriteAsyncProtocolRequest asyncRequest)
at System.Net.Security._SslStream.ProcessWrite(Buffer OffsetSize[]
buffers, SplitWriteAsyncProtocolRequest asyncRequest)
at System.Net.TlsStream.MultipleWrite(BufferOffsetSiz e[] buffers)
at System.Net.Connection.Write(ScatterGatherBuffers writeBuffer)
at System.Net.ConnectStream.ResubmitWrite(ConnectStre am oldStream,
Boolean suppressWrite)
--- End of inner exception stack trace ---
at
System.Web.Services.Protocols.WebClientProtocol.Ge tWebResponse(WebRequest
request)
at

System.Web.Services.Protocols.HttpWebClientProtoco l.GetWebResponse(WebReque*s
trequest)
at
Microsoft.Web.Services3.WebServicesClientProtocol. GetResponse(WebRequest
request, IAsyncResult result)
at

Microsoft.Web.Services3.WebServicesClientProtocol. GetWebResponse(WebRequest
request)
at
System.Web.Services.Protocols.SoapHttpClientProtoc ol.Invoke(String
methodName, Object[] parameters)
Thanks.- Hide quoted text -

- Show quoted text -- Hide quoted text -

- Show quoted text -

Feb 2 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.