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

From: Dave (Dave_at_discussions.microsoft.com)
Date: 01/27/05


Date: Thu, 27 Jan 2005 04:57:02 -0800

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" <afjlee@hotmail.com>
> References: <e18eTU65EHA.4072@TK2MSFTNGP10.phx.gbl>
> <B6hg2x85EHA.2680@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: <##Dnh9a8EHA.3124@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!TK2MSFTNGP08.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" <danro@microsoft.com> wrote in message
> news:B6hg2x85EHA.2680@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" <afjlee@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: <e18eTU65EHA.4072@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!TK2MSFTNGP08.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
> >
> >
> >
>
>
>



Relevant Pages

  • Re: Need to write web service
    ... I think for my web app I chose ASP.NET Web Site next ... type (ASP, Windows, Mobile Device, etc.). ... select Add Web Reference to add a webservice. ... ASP.Net Web Service - this will create your web service ...
    (microsoft.public.dotnet.languages.vb)
  • Re: WinForms and WebServices
    ... The OP wants to create a WebService and a WebForms application to ... who will install the WebService on their Web servers. ... When that is installed your program can reference to that. ... So you say that I can change the web service URL in the config file at run ...
    (microsoft.public.dotnet.languages.vb)
  • Re: WinForms and WebServices
    ... The OP wants to create a WebService and a WebForms application to ... who will install the WebService on their Web servers. ... When that is installed your program can reference to that. ... So you say that I can change the web service URL in the config file at run ...
    (microsoft.public.dotnet.languages.vb)
  • Re: DateTime WebService Discrepancy.
    ... When the datetime is sent by the webservice, ... > Ofcourse I had not even though of just passing a string as a parameter ... > locally and cut out the call to the web service. ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: upload 50M file to web service got 500 internal server error
    ... Right now maxRequestLength property of Web App and Webservcie are all set to ... I can see the Trace log from trace.axd of Web App that a request ... But in trace.axd of the Webservice, ... > web service thread crashed and IIS threw back a internal server error HTTP ...
    (microsoft.public.dotnet.framework.webservices)