Re: *** REST, large POST, and "Server Error" (for gurus only)

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance




"Amil Hanish" <amilhanish@xxxxxxxxxxx> wrote in message news:uu0T2eSEKHA.1376@xxxxxxxxxxxxxxxxxxxxxxx
I am using REST to POST a large set of XML content. I get an exception when I send XML that is like 10M in size.

"The server encountered an error processing the request. See server logs for more details"

If I try to debug the service, my RESTful method is never called. I've increased all the General and ReaderQuotas on the bind, as well as increased the <httpRuntime maxRequestLength="20480"/>. Even if I turn on WCF diagnostics, nothing in the diagnotic log.

Any ideas how either 1) how to figure out what the REAL error is, or 2) how to send very large XML sets via REST POST?

I did have to modify the CLIENT DataContractSerializer behavior to that it could create larger graphs (MaxItemsInObjectGraph); maybe that affects the host as well on the deserialization.


With a WCF Web Service and the ReaderQuotas, the numbers for string length would have to be increased on the client and server sides.


__________ Information from ESET NOD32 Antivirus, version of virus signature database 4294 (20090731) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com



.



Relevant Pages

  • Re: Response.Write inserting extra
    ... > server via .NET remoting and returns it in the Response.Write method. ... Error processing ... It sound as if that is sent along with the xml document. ... What does "View Source" in IE on the displayed aspx look like? ...
    (microsoft.public.dotnet.framework.aspnet)
  • *** REST, large POST, and "Server Error" (for gurus only)
    ... I get an exception when I send XML that is like 10M in size. ... "The server encountered an error processing the request. ... See server logs for more details" ... nothing in the diagnotic log. ...
    (microsoft.public.dotnet.framework.webservices)
  • *** REST, large POST, and "Server Error" (for gurus only)
    ... I am using REST to POST a large set of XML content. ... "The server encountered an error processing the request. ... nothing in the diagnotic log. ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • Re: Duplicate Record with .ADDNEW
    ... If the database server will allow you to create a table without something, ... table there is no possibility of duplicate records. ... field imported from the XML. ... Use the Command object instead. ...
    (microsoft.public.vb.database.ado)
  • RE: XML iFilter needed for SPS 2003 infopath forms?
    ... did in fact need to be installed on the Sharepoint server, ... Apparently the claim that SP indexes xml files is not quite specific enough. ... It must use a default text Filter not a true xml ifilter. ...
    (microsoft.public.sharepoint.portalserver)