Ask a Question related to ASP.NET Web Services, Design and Development.
-
vigori #1
WebException HTTP 400 Bad Request depends on size of file attach
I have an application that send a file to a web service (I built both the
application and the web service)
I set the max file size via web.config of the web service:
<httpRuntime executionTimeout="1800"
maxRequestLength="5000"
/>
When the file size exceed 5000 (kb) I receive the right exception
(System.Web.Services.Protocols.SoapException) that tell me that the dimension
is incorrect.
If I try to reduce the timeout and my application exceed the timeout, also
in this case receive the right exception.
But when I send i file larger then 4096 kbyte and less than 5000 kb (or the
limit set in maxRequestLength) I receive a generic System.Net.WebException:
The request failed with HTTP status 400: Bad Request
at
System.Web.Services.Protocols.SoapHttpClientProtoc ol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
at System.Web.Services.Protocols.SoapHttpClientProtoc ol.Invoke(String
methodName, Object[] parameters)
There was a limit in SOAP message size or the limit is in IIS?
I looked for a limit in IIS metabase.xml but I found nothing.
I also searched the solution in IIS newsgroup, it is maybe better that I
post these question there?
My Configuration is:
Windows 2003 (italian)
IIS 6.0
Web Services Enhancements 2.0 (on server and client)
Many thanks
vigori Guest
-
System.Net.WebException: The request failed with the error message:Object moved to here
Greetings, This question is related to Microsoft Reporting Services Web service. I tried asking it in RS groups but no one seems to be... -
System.Net.WebException: The request failed with the error message: Object Moved
We have a web service that we built with VB.NET and had been working for about 5 months or so, that is until last month. We use this web service... -
System.Net.WebException Request Entity Too Large (not running IIS)
When my .NET program makes a Web Service call I get this response... System.Net.WebException: The request failed with HTTP status 413: Request... -
Send Basic HTTP authentication credential in the first HTTP request
Hello, How can I make the web service proxy class send basic authentication information in the HTTP header of the first request? My... -
WebException, HTTP 404
I have an application with a couple of aspx-sites in a frame.aspx, consuming two web-services. (three projects in the same solution) I install...



Reply With Quote

