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