Large data transfer  
Author Message
turczytj





PostPosted: ASMX Web Services and XML Serialization, Large data transfer Top

I created a local web service that accepts a byte array as a parameter and then I write the data in the array to a hardcoded file name.

I added the following entry to the web service app's config file and my computer's machine.config files:

<httpRuntime maxRequestLength="1048576" executionTimeout="180" />

I can successfully transfer 50 megs worth of data but it fails with the following error msg when i try to send a 100 megs of data (1 gig is my goal):

{"The underlying connection was closed: An unexpected error occurred on a send."}

System.Net.WebException: {"The underlying connection was closed: An unexpected error occurred on a send."}

InnerException: {"Unable to write data to the transport connection: An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full."}

Message: "The underlying connection was closed: An unexpected error occurred on a send."

<snip>

Note - it fails long before the specified time out value is reached.

Anybody have any ideas. Any assistance would be appreciated.

todd



.NET Development10  
 
 
Mark Fussell





PostPosted: ASMX Web Services and XML Serialization, Large data transfer Top

Have you read this

http://blogs.msdn.com/yassers/archive/2004/11/10/255212.aspx

Thanks. Mark



 
 
turczytj





PostPosted: ASMX Web Services and XML Serialization, Large data transfer Top

I'm sorry, I was not clear. I want to send the web service a large amount of data - not have the web service return a large amount of data. The blog entry provides an example of the latter.

todd


 
 
__alex__





PostPosted: ASMX Web Services and XML Serialization, Large data transfer Top

Hi Todd,

I'm having the exact same problem with files over 50 MB. Did you find a solution to the problem

Alex

 
 
turczytj





PostPosted: ASMX Web Services and XML Serialization, Large data transfer Top

no