473,671 Members | 2,298 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 2086
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 (programaticall y) 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({so me 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
18283
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 robotic rover that rolled onto the planet's surface on Thursday in search of signs of water and life. http://news.com.com/2100-1007_3-5142220.html?tag=nefd_top l8r, Mike N. Christoff
2
2227
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 *sometimes* crashes upon starting. The progressbar you get when you manually start the server will very slowly progress, and when it hits 100% after 2 minutes or something I get the error 'The service could not be started because it did not...
4
6202
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 pass the data to the web service. I already modified both web.config files and changed maxRequestLength to 60000(kb). When I debug the upload process, it seems the Web application can get the 50M file and read the data without problem, but when the...
3
2491
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 between the XML Web Service and the host for the remote object. Within the host a port is defined and the channel registered. It starts listening for requests. The destination port is therefore clearly defined.
9
6329
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 service does not respond to the consumer or to my browser pointing to the asmx file. An IIS restart fixed the problem once but has also not fixed the problem. We had to go as far as restarting Windows. Any ideas? Some configuration tweak that...
3
1908
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 that is "hosting" the web service. That is, the IBM AIX server cannot ping the IIS server. 3) We have a application server (Windows 2003 server) that allows communication from the IBM AIX server to the IIS server. Here's a diagram of our...
1
1346
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 doesn't seem to loop at all, ie, I only get the 1 round of warning messages (it also sends me a net message, but that will be removed eventually). My code for the whole service is below: Imports System Imports System.IO Imports System.Net...
5
5891
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 about asp.net session state service? -Billy
2
1511
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 service methods very often. After a few hours, the replies from the server are very slow, and I have at the end osme thread aborted errors generated by my web service. My first question is : is that better to send 1 query with 10 rows of data or 10...
0
8474
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8392
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8912
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8597
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7428
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6222
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4222
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2809
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2049
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.