473,513 Members | 2,558 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Web service not responding for larger data

Hi all,

I am facing some wierd problem in web service.

I have on web service with is accepting 3 dataset.

One dataset content of csv file. Size of csv file is 86MB.

But when i am calling web method it is not getting processed.

And after some time i am getting error :-

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

But if i run same thing with 28 MB file then it is working properly.

My web service is on another pc and client is on another pc.

i tried with increating size in web.config also. But of no success.

Can someone shed some light on this.

Please help me asap as this is very very important for me.

Thanks in advance.

Mar 2 '06 #1
2 2083
86Mb is quite large for a web-service, particularly if this is loaded into
any object model.

It *sounds* like what you are doing is uploading a big CSV file; if this was
me, what I would do is something along the lines of:

Create a web-service along the lines of the below; this allows you to upload
the large file via a series of smaller steps - better fault tolerance, and
more ability to report progress to the user. More importantly, it avoids
having a damned *huge* array in memory at either end (which is probably the
main problem here), and means it never gets loaded into any object model
(XmlDocument, DataSet, etc).
Because of the byte[] param, this would work best with WSE3 / MTOM. I would
even consider using the Compression namespace to (programatically) shrink
the data on-the-fly (although IIS compression would also suit). The byte[]
approach is for total flexibility; you could use string chunks for csv, but
not for other types.

[WebMethod]
public int StartUpload({some metadata}) {
// return some token for a new file; could be the (string) path on the
server, but I prefer to abstract this
}

[WebMethod]
public void UploadChunk(int token, int offset, byte[] data) {
// append this chunk to the file (via binary methods)
}

[WebMethod]
public void EndUpload(int token, bool commit) {
// if commit, simple finalise the file (perhaps move from %TEMP%); else
abort (delete the file)
}


Mar 2 '06 #2
Hi
thanks for your reply.

but then by sending data in the form of chunk, it will increase trips
between client and server.

Can you tell me maximim size which can be set to send data to server.

As well as maximum of how much data i can send to web service.

Any help will be truely apprecaited.

Thanks in advance.

Mar 9 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

198
18090
by: Michael N. Christoff | last post by:
Java, the software developed by Sun Microsystems in the mid-1990s as a universal operating system for Internet applications, gave NASA a low-cost and easy-to-use option for running Spirit, the...
2
2222
by: Razzie | last post by:
Hey all, I wrote a Windows Service. When I test it on my developement machine (winXP) it works fine. It starts ok, never crashes, etc. When I install the service on another machine (win2000) it...
4
6181
by: jf li | last post by:
I have a Asp.net web application and a Asp.net Web service application. The Web application is using HtmlInputFile to get a 50M size of file selected by end user, read the data of this file and...
3
2483
by: Fredric Ragnar | last post by:
Hi, I am making a prototype system with Remoting in the bottom of the system. An XML Web Service is using the remote object on an IIS to present data. I am using a TcpChannel for communicating...
9
6309
by: Dan S | last post by:
I have a .NET web service running on a 2K box and IIS 5. We've experienced it twice now where the service stops responding to any type of request after running succesfully for a month or so. The...
3
1903
by: Donald | last post by:
I need to consume a web service. Here's my situation: 1) I need to consume a web service from an IBM AIX server/Web Sphere. 2) The IBM AIX Server is not on the same network as the IIS server...
1
1331
by: CraigMuckleston | last post by:
I have built a windows service that should check whether a page can be returned from a site (from various servers). If not, it logs to the Application Error log. My trouble is this. It runs once, but...
5
5878
by: =?Utf-8?B?QmlsbHkgWmhhbmc=?= | last post by:
Hi All, I am using asp.net session state service to store session. The concurrent online user will be almost 2000. Could asp.net session state service afford this? Is there any limitation...
2
1506
by: =?Utf-8?B?UGllcnJl?= | last post by:
I recently deployed a Web Service (IIS .0 on Windows Server 2003). About 400 clients are using it to synchronize some datas from clients database to web server database, so they are calling web...
0
7260
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7161
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7384
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7525
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
4746
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3234
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3222
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
802
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
456
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.