473,756 Members | 1,841 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

upload 50M file to web service got 500 internal server error

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 maxRequestLengt h 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 Web app
send the data to web service application, the call returns immediately with
"500 internal server error".

Is there any other place I should look or config to make the web service
application accept 50M size of file? Thanks a lot ahead!!!
-jeff
Nov 23 '05 #1
4 6210
A 500 error is a clue that a SOAP fault may have been thrown, or that the
web service thread crashed and IIS threw back a internal server error HTTP
message.

You'll have to debug your service to find out what's going on. In general
I'd be skeptical of any design that allowed a user to upload a 50MB file
into my web server, and then immediately tried to stream a > 50MB message
as binary encoded XML (it is likely that you ended up with a message >
100MB however, so 60000kb isn't enough to handle a 50MB file.

Ordinarily I'd recommend tracing the message - but I'm not sure trace.axd
can handle such a message without crashing. Does the program work for
arbitrarily small files and then fail for large files? If so, you need to
look at the exception you're receiving (if it is a SOAP fault, you get more
data than this, a stack trace would help you understand what's going on.

Best of luck .... erp.... 50MB (yikes!)

Dan Rogers
Microsoft Corporation
--------------------
From: "jf li" <af****@hotmail .com>
Subject: upload 50M file to web service got 500 internal server error
Date: Tue, 21 Dec 2004 16:36:03 -0500
Lines: 16
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
Message-ID: <e1************ **@TK2MSFTNGP10 .phx.gbl>
Newsgroups: microsoft.publi c.dotnet.framew ork.webservices
NNTP-Posting-Host: mail.blueshoe.c om 66.194.28.35
Path:
cpmsftngxa10.ph x.gbl!TK2MSFTFE ED02.phx.gbl!TK 2MSFTNGP08.phx. gbl!TK2MSFTNGP1 0
.phx.gbl
Xref: cpmsftngxa10.ph x.gbl
microsoft.publi c.dotnet.framew ork.webservices :8253
X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.webservices

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 maxRequestLengt h 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 Web app
send the data to web service application, the call returns immediately with
"500 internal server error".

Is there any other place I should look or config to make the web service
application accept 50M size of file? Thanks a lot ahead!!!
-jeff

Nov 23 '05 #2
Still didn't figure out how to solve this problem. Not sure it is because
Asp.net webservcie doesn't support 50M file or there is sth I need to
configure but I don't know.

Right now maxRequestLengt h property of Web App and Webservcie are all set to
2000000(k), which is the size of 2G.
Program definitely works for small size of files. Even the 25M file is
working without problem. I turned out the Trace option of Web App and
Webservcie. I can see the Trace log from trace.axd of Web App that a request
was processed. But in trace.axd of the Webservice, there is no any
information about the request from the Web App. When debugging, I also
noticed that the call from the Web App to Webservice returned immediately
when the Webservice proxy trying to call the Webservice, so I dont' think
the call was passed to Webservice at all.

The Exception I got from the Web App is of
"System.Invalid OperationExcept ion, and the message is "Client found response
content type of 'text/html', but expected 'text/xml'. \r\n The request
failed with the error message: \r\n--\r\n<html><head ><title>Serve r
Error</title></head><body><h1> HTTP/1.1 500 Server
Error</h1></body></html>\r\n--.".
_COMPlusExcepti onCode 0xe0434f4d
_HResult 0x80131509
_xcode 0xe0434f4d
InnerException {null}
_source "System.Web.Ser vices"
StackTrace shows the error happened at the line of code calling to
Webservice.

???

Help


"Dan Rogers" <da***@microsof t.com> wrote in message
news:B6******** ******@cpmsftng xa10.phx.gbl...
A 500 error is a clue that a SOAP fault may have been thrown, or that the
web service thread crashed and IIS threw back a internal server error HTTP
message.

You'll have to debug your service to find out what's going on. In general
I'd be skeptical of any design that allowed a user to upload a 50MB file
into my web server, and then immediately tried to stream a > 50MB message
as binary encoded XML (it is likely that you ended up with a message >
100MB however, so 60000kb isn't enough to handle a 50MB file.

Ordinarily I'd recommend tracing the message - but I'm not sure trace.axd
can handle such a message without crashing. Does the program work for
arbitrarily small files and then fail for large files? If so, you need to
look at the exception you're receiving (if it is a SOAP fault, you get more data than this, a stack trace would help you understand what's going on.

Best of luck .... erp.... 50MB (yikes!)

Dan Rogers
Microsoft Corporation
--------------------
From: "jf li" <af****@hotmail .com>
Subject: upload 50M file to web service got 500 internal server error
Date: Tue, 21 Dec 2004 16:36:03 -0500
Lines: 16
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
Message-ID: <e1************ **@TK2MSFTNGP10 .phx.gbl>
Newsgroups: microsoft.publi c.dotnet.framew ork.webservices
NNTP-Posting-Host: mail.blueshoe.c om 66.194.28.35
Path:
cpmsftngxa10.ph x.gbl!TK2MSFTFE ED02.phx.gbl!TK 2MSFTNGP08.phx. gbl!TK2MSFTNGP1 0 phx.gbl
Xref: cpmsftngxa10.ph x.gbl
microsoft.publi c.dotnet.framew ork.webservices :8253
X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.webservices

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 maxRequestLengt h 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 Web app
send the data to web service application, the call returns immediately with "500 internal server error".

Is there any other place I should look or config to make the web service
application accept 50M size of file? Thanks a lot ahead!!!
-jeff

Nov 23 '05 #3
If you're getting an HTML encoded response when the request returns an
error, it isn't coming from your service. It's coming from IIS itself.
Try looking at the response in the trace. you can see exactly what comes
back if you install a trace web service extension (avaliable from
gotdotnet.com). if the trace never shows a request, than a setting in IIS
that is rejecting the request is cutting you off. Remember that your 50M
file may be VERY VERY VERY large (much larger than 50M when passed in an
XML request. I'm not sure what the absolute max for IIS/ASP.net is, but I
would probably recommend that any developer working for ME that designed a
web service that takes a 100M parameter be considered as a candidate for
outsourcing... ;)
--------------------
From: "jf li" <af****@hotmail .com>
References: <e1************ **@TK2MSFTNGP10 .phx.gbl>
<B6************ **@cpmsftngxa10 .phx.gbl>
Subject: Re: upload 50M file to web service got 500 internal server error
Date: Mon, 3 Jan 2005 11:15:00 -0500
Lines: 103
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
Message-ID: <##************ **@TK2MSFTNGP11 .phx.gbl>
Newsgroups: microsoft.publi c.dotnet.framew ork.webservices
NNTP-Posting-Host: mail.blueshoe.c om 66.194.28.35
Path:
cpmsftngxa10.ph x.gbl!TK2MSFTNG XA03.phx.gbl!TK 2MSFTNGP08.phx. gbl!TK2MSFTNGP1 1
.phx.gbl
Xref: cpmsftngxa10.ph x.gbl
microsoft.publi c.dotnet.framew ork.webservices :8378
X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.webservices

Still didn't figure out how to solve this problem. Not sure it is because
Asp.net webservcie doesn't support 50M file or there is sth I need to
configure but I don't know.

Right now maxRequestLengt h property of Web App and Webservcie are all set to
2000000(k), which is the size of 2G.
Program definitely works for small size of files. Even the 25M file is
working without problem. I turned out the Trace option of Web App and
Webservcie. I can see the Trace log from trace.axd of Web App that a request
was processed. But in trace.axd of the Webservice, there is no any
information about the request from the Web App. When debugging, I also
noticed that the call from the Web App to Webservice returned immediately
when the Webservice proxy trying to call the Webservice, so I dont' think
the call was passed to Webservice at all.

The Exception I got from the Web App is of
"System.Invalid OperationExcept ion, and the message is "Client found response
content type of 'text/html', but expected 'text/xml'. \r\n The request
failed with the error message: \r\n--\r\n<html><head ><title>Serve r
Error</title></head><body><h1> HTTP/1.1 500 Server
Error</h1></body></html>\r\n--.".
_COMPlusExcepti onCode 0xe0434f4d
_HResult 0x80131509
_xcode 0xe0434f4d
InnerException {null}
_source "System.Web.Ser vices"
StackTrace shows the error happened at the line of code calling to
Webservice.

???

Help


"Dan Rogers" <da***@microsof t.com> wrote in message
news:B6******** ******@cpmsftng xa10.phx.gbl...
A 500 error is a clue that a SOAP fault may have been thrown, or that the
web service thread crashed and IIS threw back a internal server error HTTP
message.

You'll have to debug your service to find out what's going on. In general
I'd be skeptical of any design that allowed a user to upload a 50MB file
into my web server, and then immediately tried to stream a > 50MB message
as binary encoded XML (it is likely that you ended up with a message >
100MB however, so 60000kb isn't enough to handle a 50MB file.

Ordinarily I'd recommend tracing the message - but I'm not sure trace.axd
can handle such a message without crashing. Does the program work for
arbitrarily small files and then fail for large files? If so, you need to
look at the exception you're receiving (if it is a SOAP fault, you get more data than this, a stack trace would help you understand what's going on.

Best of luck .... erp.... 50MB (yikes!)

Dan Rogers
Microsoft Corporation
--------------------
From: "jf li" <af****@hotmail .com>
Subject: upload 50M file to web service got 500 internal server error
Date: Tue, 21 Dec 2004 16:36:03 -0500
Lines: 16
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
Message-ID: <e1************ **@TK2MSFTNGP10 .phx.gbl>
Newsgroups: microsoft.publi c.dotnet.framew ork.webservices
NNTP-Posting-Host: mail.blueshoe.c om 66.194.28.35
Path:
cpmsftngxa10.ph x.gbl!TK2MSFTFE ED02.phx.gbl!TK 2MSFTNGP08.phx. gbl!TK2MSFTNGP1 0 phx.gbl
Xref: cpmsftngxa10.ph x.gbl
microsoft.publi c.dotnet.framew ork.webservices :8253
X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.webservices

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 maxRequestLengt h 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 Web app
send the data to web service application, the call returns immediately with "500 internal server error".

Is there any other place I should look or config to make the web service
application accept 50M size of file? Thanks a lot ahead!!!
-jeff


Nov 23 '05 #4
Dan,

How would you recommend getting a 100 meg data file to a webservice
with the understanding that soap is including its own baggage which could
double the size.

My customer wants and expects this.

I don't wish to be outsourced... :)

Cheers,
Dave
"Dan Rogers" wrote:
If you're getting an HTML encoded response when the request returns an
error, it isn't coming from your service. It's coming from IIS itself.
Try looking at the response in the trace. you can see exactly what comes
back if you install a trace web service extension (avaliable from
gotdotnet.com). if the trace never shows a request, than a setting in IIS
that is rejecting the request is cutting you off. Remember that your 50M
file may be VERY VERY VERY large (much larger than 50M when passed in an
XML request. I'm not sure what the absolute max for IIS/ASP.net is, but I
would probably recommend that any developer working for ME that designed a
web service that takes a 100M parameter be considered as a candidate for
outsourcing... ;)
--------------------
From: "jf li" <af****@hotmail .com>
References: <e1************ **@TK2MSFTNGP10 .phx.gbl>
<B6************ **@cpmsftngxa10 .phx.gbl>
Subject: Re: upload 50M file to web service got 500 internal server error
Date: Mon, 3 Jan 2005 11:15:00 -0500
Lines: 103
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
Message-ID: <##************ **@TK2MSFTNGP11 .phx.gbl>
Newsgroups: microsoft.publi c.dotnet.framew ork.webservices
NNTP-Posting-Host: mail.blueshoe.c om 66.194.28.35
Path:
cpmsftngxa10.ph x.gbl!TK2MSFTNG XA03.phx.gbl!TK 2MSFTNGP08.phx. gbl!TK2MSFTNGP1 1
.phx.gbl
Xref: cpmsftngxa10.ph x.gbl
microsoft.publi c.dotnet.framew ork.webservices :8378
X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.webservices

Still didn't figure out how to solve this problem. Not sure it is because
Asp.net webservcie doesn't support 50M file or there is sth I need to
configure but I don't know.

Right now maxRequestLengt h property of Web App and Webservcie are all set to
2000000(k), which is the size of 2G.
Program definitely works for small size of files. Even the 25M file is
working without problem. I turned out the Trace option of Web App and
Webservcie. I can see the Trace log from trace.axd of Web App that a request
was processed. But in trace.axd of the Webservice, there is no any
information about the request from the Web App. When debugging, I also
noticed that the call from the Web App to Webservice returned immediately
when the Webservice proxy trying to call the Webservice, so I dont' think
the call was passed to Webservice at all.

The Exception I got from the Web App is of
"System.Invalid OperationExcept ion, and the message is "Client found response
content type of 'text/html', but expected 'text/xml'. \r\n The request
failed with the error message: \r\n--\r\n<html><head ><title>Serve r
Error</title></head><body><h1> HTTP/1.1 500 Server
Error</h1></body></html>\r\n--.".
_COMPlusExcepti onCode 0xe0434f4d
_HResult 0x80131509
_xcode 0xe0434f4d
InnerException {null}
_source "System.Web.Ser vices"
StackTrace shows the error happened at the line of code calling to
Webservice.

???

Help


"Dan Rogers" <da***@microsof t.com> wrote in message
news:B6******** ******@cpmsftng xa10.phx.gbl...
A 500 error is a clue that a SOAP fault may have been thrown, or that the
web service thread crashed and IIS threw back a internal server error HTTP
message.

You'll have to debug your service to find out what's going on. In general
I'd be skeptical of any design that allowed a user to upload a 50MB file
into my web server, and then immediately tried to stream a > 50MB message
as binary encoded XML (it is likely that you ended up with a message >
100MB however, so 60000kb isn't enough to handle a 50MB file.

Ordinarily I'd recommend tracing the message - but I'm not sure trace.axd
can handle such a message without crashing. Does the program work for
arbitrarily small files and then fail for large files? If so, you need to
look at the exception you're receiving (if it is a SOAP fault, you get

more
data than this, a stack trace would help you understand what's going on.

Best of luck .... erp.... 50MB (yikes!)

Dan Rogers
Microsoft Corporation
--------------------
From: "jf li" <af****@hotmail .com>
Subject: upload 50M file to web service got 500 internal server error
Date: Tue, 21 Dec 2004 16:36:03 -0500
Lines: 16
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
Message-ID: <e1************ **@TK2MSFTNGP10 .phx.gbl>
Newsgroups: microsoft.publi c.dotnet.framew ork.webservices
NNTP-Posting-Host: mail.blueshoe.c om 66.194.28.35
Path:

cpmsftngxa10.ph x.gbl!TK2MSFTFE ED02.phx.gbl!TK 2MSFTNGP08.phx. gbl!TK2MSFTNGP1 0
phx.gbl
Xref: cpmsftngxa10.ph x.gbl
microsoft.publi c.dotnet.framew ork.webservices :8253
X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.webservices

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 maxRequestLengt h 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 Web app
send the data to web service application, the call returns immediately

with
"500 internal server error".

Is there any other place I should look or config to make the web service
application accept 50M size of file? Thanks a lot ahead!!!
-jeff


Nov 23 '05 #5

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

Similar topics

2
5598
by: Pedro Carvalho | last post by:
I am using a WebClient.Upload File method (using the HTTP POST) on the Client side and, to accept posted files on the Server side, I am using an ASP.NET page with the following code: void Page_Load(object sender, EventArgs e) { foreach(string f in Request.Files.AllKeys) { HttpPostedFile file = Request.Files; file.SaveAs("c:\\WUTemp\\" + file.FileName);
1
5241
by: Phillip N Rounds | last post by:
I'm having problems using the WebClient.UploadFile() command. I have MySender.ASPX which is supposed to upload two files to the server. There is also ConsumeFileUpload.aspx which is intended to handle receipt of the files. Pertinent code for each is below. When I run the process locally in debug mode, everything works great ( VS.NET 2003 , ASP 1.1 ). When I run locally on the server, everything works great. When I try to remotely...
6
3335
by: =?ISO-8859-1?Q?J=F8rn?= Dahl-Stamnes | last post by:
I have a strange problem when uploading a PDF document to a web-server. When I try this to a web-server running Apache 2 on a FC 4, it fails. Firefox says that the document contain no data. If I upload it to a different web-server running RH 7.3 (an internal test-webserver), it works OK. The PDF document is created by OpenOffice 2.0 from a MS Word document. I have also had it converted to PDF in MS Word that could create PDF documents....
9
20898
by: 8anos | last post by:
Hello, I am new at the community and newbie at programming :) As you may know rapidshare provides a perl script for linux, to upload files at their servers. You can find the original scripts at rapidshare news : http://images.rapidshare.com/software/rsapi.pl If you test it you will see that you can upload one file at time. I try to modify it in that way that script can read a text file with the names of the files i want to...
0
9802
by: Buddy Home | last post by:
Hello, I'm trying to upload a file programatically and occasionally I get the following error message. Unable to write data to the transport connection: An established connection was aborted by the software in your host machine. Stack Trace at System.Net.Sockets.NetworkStream.Write(Byte buffer, Int32 offset, Int32
2
5156
by: pmlane2001 | last post by:
I have a PHP SOAP XML file size problem that I was wondering if anyone has seen before. I have an XML file that when I put it through my PHP script with 270 lines (13,082 KB) it works fine. If I make it 271 lines (13,112 KB), it causes the script to end with a soap fault. I've tried adding substance to the 270 lines to make the file bigger with out adding lines, but it didn't fail. I've installed everything on a second development box...
24
7730
by: owz2008 | last post by:
This has probably been covered before but could not find a similar thread. Basically I have created a form which can be viewed at www.icomworks.co.uk/canvaspayform.html I want to submit the form along with the file so that they are both placed on my server... I have created a folder on my server in my public_html called myscripts and have saved my upload.cgi script into that folder. my form points to that script but when I fill in the...
14
5622
by: Peter | last post by:
..NET 3.5 I have a Windows Service application and it does remoting, but when a client incounters an error the client get the following error message "Server encountered an internal error. For more information, turn off customErrors in the server's .config file." Where do I turn this off
5
1889
by: petershaman | last post by:
Hi I have a gorgeous flash image gallery, it would work perfectly fine but there's a small problem I can't upload anything thru it's upload script, since I'm getting an error 403. It's so because server sets by default CHMOD 600, whilst gallery needs to be set 644 to operate correctly. In this upload php script there is a command which theoretically should change permissions for uploaded files, but it's not doing the job, there's obviously...
0
9455
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
9271
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
9869
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9838
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
8709
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...
0
6534
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5302
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3805
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
3
2665
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.