473,416 Members | 1,928 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,416 software developers and data experts.

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 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 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 6159
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.public.dotnet.framework.webservices
NNTP-Posting-Host: mail.blueshoe.com 66.194.28.35
Path:
cpmsftngxa10.phx.gbl!TK2MSFTFEED02.phx.gbl!TK2MSFT NGP08.phx.gbl!TK2MSFTNGP10
.phx.gbl
Xref: cpmsftngxa10.phx.gbl
microsoft.public.dotnet.framework.webservices:8253
X-Tomcat-NG: microsoft.public.dotnet.framework.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 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 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 maxRequestLength 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.InvalidOperationException, 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>Server
Error</title></head><body><h1>HTTP/1.1 500 Server
Error</h1></body></html>\r\n--.".
_COMPlusExceptionCode 0xe0434f4d
_HResult 0x80131509
_xcode 0xe0434f4d
InnerException {null}
_source "System.Web.Services"
StackTrace shows the error happened at the line of code calling to
Webservice.

???

Help


"Dan Rogers" <da***@microsoft.com> wrote in message
news:B6**************@cpmsftngxa10.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.public.dotnet.framework.webservices
NNTP-Posting-Host: mail.blueshoe.com 66.194.28.35
Path:
cpmsftngxa10.phx.gbl!TK2MSFTFEED02.phx.gbl!TK2MSFT NGP08.phx.gbl!TK2MSFTNGP10 phx.gbl
Xref: cpmsftngxa10.phx.gbl
microsoft.public.dotnet.framework.webservices:8253
X-Tomcat-NG: microsoft.public.dotnet.framework.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 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 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.public.dotnet.framework.webservices
NNTP-Posting-Host: mail.blueshoe.com 66.194.28.35
Path:
cpmsftngxa10.phx.gbl!TK2MSFTNGXA03.phx.gbl!TK2MSFT NGP08.phx.gbl!TK2MSFTNGP11
.phx.gbl
Xref: cpmsftngxa10.phx.gbl
microsoft.public.dotnet.framework.webservices:8378
X-Tomcat-NG: microsoft.public.dotnet.framework.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 maxRequestLength 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.InvalidOperationException, 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>Server
Error</title></head><body><h1>HTTP/1.1 500 Server
Error</h1></body></html>\r\n--.".
_COMPlusExceptionCode 0xe0434f4d
_HResult 0x80131509
_xcode 0xe0434f4d
InnerException {null}
_source "System.Web.Services"
StackTrace shows the error happened at the line of code calling to
Webservice.

???

Help


"Dan Rogers" <da***@microsoft.com> wrote in message
news:B6**************@cpmsftngxa10.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.public.dotnet.framework.webservices
NNTP-Posting-Host: mail.blueshoe.com 66.194.28.35
Path:
cpmsftngxa10.phx.gbl!TK2MSFTFEED02.phx.gbl!TK2MSFT NGP08.phx.gbl!TK2MSFTNGP10 phx.gbl
Xref: cpmsftngxa10.phx.gbl
microsoft.public.dotnet.framework.webservices:8253
X-Tomcat-NG: microsoft.public.dotnet.framework.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 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 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.public.dotnet.framework.webservices
NNTP-Posting-Host: mail.blueshoe.com 66.194.28.35
Path:
cpmsftngxa10.phx.gbl!TK2MSFTNGXA03.phx.gbl!TK2MSFT NGP08.phx.gbl!TK2MSFTNGP11
.phx.gbl
Xref: cpmsftngxa10.phx.gbl
microsoft.public.dotnet.framework.webservices:8378
X-Tomcat-NG: microsoft.public.dotnet.framework.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 maxRequestLength 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.InvalidOperationException, 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>Server
Error</title></head><body><h1>HTTP/1.1 500 Server
Error</h1></body></html>\r\n--.".
_COMPlusExceptionCode 0xe0434f4d
_HResult 0x80131509
_xcode 0xe0434f4d
InnerException {null}
_source "System.Web.Services"
StackTrace shows the error happened at the line of code calling to
Webservice.

???

Help


"Dan Rogers" <da***@microsoft.com> wrote in message
news:B6**************@cpmsftngxa10.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.public.dotnet.framework.webservices
NNTP-Posting-Host: mail.blueshoe.com 66.194.28.35
Path:

cpmsftngxa10.phx.gbl!TK2MSFTFEED02.phx.gbl!TK2MSFT NGP08.phx.gbl!TK2MSFTNGP10
phx.gbl
Xref: cpmsftngxa10.phx.gbl
microsoft.public.dotnet.framework.webservices:8253
X-Tomcat-NG: microsoft.public.dotnet.framework.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 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 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
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...
1
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...
6
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...
9
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...
0
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...
2
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...
24
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...
14
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....
5
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...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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
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...
0
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
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,...
0
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...

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.