473,385 Members | 1,356 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

web service timeout!

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
2 7341
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Carson Saunders | last post by:
I have a C# client application that calls a web service. I implement the CookieContainer class on the client to ensure the session is kept. However, I'm having trouble with the session timeout. I...
2
by: dayblue | last post by:
My question has to do with the process of calling web services. Typically when the client calls a web service they can specify the timeout for the call. My question is how the actual web service...
11
by: Frank Rizzo | last post by:
Hello, My c# based windows service takes a while to dispose. I have to release bunch of resources all over the place and unfortunately it can take 20-40 seconds before I can cleanly exit. ...
0
by: Seth | last post by:
For some reason my service works fine except that it will create the file in my c drive, but will not write to the file. Sorry if this is a duplicate post, i have found some that ask the same...
3
by: Mike | last post by:
Timeout Calling Web Service I am calling a .NET 1.1 web service from an aspx page. The web service can take several minutes to complete its tasks before returning a message to the aspx page. ...
0
by: Barb | last post by:
Hello, I have a (C#) web service being consumed by a high volume "asp classic" site. It worked perfectly until I tried consuming a second web service from the first web service. Both services...
1
by: Shane | last post by:
I have a particular requirement when I call a web service; I have to call the web service, wait until the web service returns or my timeout expires (whichever is sooner) and exit. I tried to use...
1
by: Greg Allen | last post by:
I have a timeout issue with a long running web service, and I can't figure out where the timeout value is coming from. In the client I end up getting the following exception: The underlying...
3
dmjpro
by: dmjpro | last post by:
plz send me a good link which can clearify me how the J2EE framework works i want the details information .... plz help thanx
0
by: =?Utf-8?B?QWRyaWFuIENvbGU=?= | last post by:
I have written a simple WCF service hosted in a Windows console application and a simple WCF client console application that connects successfully to that service and retrieves data. I then ported...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.