"Maximum request length exceeded" on Dataportal.Update() WCF call"Maximum request length exceeded" on Dataportal.Update() WCF call
Old forum URL: forums.lhotka.net/forums/t/7829.aspx
tjpatel403 posted on Tuesday, October 20, 2009
I have a list object with about 600 items in it...each item has about 5 properties. I then try to add or remove an item from the list. When I call "Save()", i get an error in the WCF call (I am using Csla.DataPortalClient.WcfProxy).
After using tracing in WCF, I found the error "Maximum request length exceeded" so it seems like too much data is being transferred. What is a viable solution to this? I found that I can change the "httpRuntime" maxRequestLength in the WCF web.config to be a greater value, but not sure if this is the best solution.
Any ideas?
Tejashtjpatel403 replied on Tuesday, October 20, 2009
And this only happens on Save()...when I fetch the list, I do not get an exception, which I don't understand since this is going through the dataportal as well.sergeyb replied on Tuesday, October 20, 2009
This is one of the things you have to do. Also, you could implement compression. In SL this is trivial, in .NET clients it takes a bit more effort. Also, you need to increase reader quotas in the config file. Something like this:
maxReceivedMessageSize="2147483647"
receiveTimeout="00:30:00"
sendTimeout="00:30:00"
openTimeout="00:10:00"
closeTimeout="00:5:00">
maxBytesPerRead="2147483647"
maxArrayLength="2147483647"
maxStringContentLength="2147483647"
maxDepth="1024"/>
.....
Sergey Barskiy
Principal Consultant
office: 678.405.0687 | mobile: 404.388.1899
Microsoft Worldwide Partner of the Year | Custom Development Solutions, Technical Innovation
-----Original Message-----
From: tjpatel403 [mailto:cslanet@lhotka.net]
Sent: Tuesday, October 20, 2009 3:56 PM
To: Sergey Barskiy
Subject: [CSLA .NET] "Maximum request length exceeded" on Dataportal.Update() WCF call
I have a list object with about 600 items in it...each item has about 5 properties. I then try to add or remove an item from the list. When I call "Save()", i get an error in the WCF call (I am using Csla.DataPortalClient.WcfProxy).
After using tracing in WCF, I found the error "Maximum request length exceeded" so it seems like too much data is being transferred. What is a viable solution to this? I found that I can change the "httpRuntime" maxRequestLength in the WCF web.config to be a greater value, but not sure if this is the best solution.
Any ideas?
Tejash
Copyright (c) Marimer LLC