Asked by:
413 Request Entity Too Large - MS Sync Framework

Question
-
HI,
Problem Scenario:I am to sync the data with the server after switching from offline to online and i am using MS Sync Framework 4.0
Steps to reproduce:
Add few data offline by making the sync service is down , after adding few data make the sync service is up.my expected behavior all the available data should sync with the server(DB).
Error:
I am getting the the error message: "ERROR: 413 Request Entity Too Large"
I tried the following but no luck:
- appcmd.exe set config -section:system.webserver/serverruntime /uploadreadaheadsize: 1048576 /commit:apphost
- Modified the following in applicationHost.config
<section name="serverRuntime" overrideModeDefault="Allow" /> in the sectionGroup of "system.webServer"
If the data is less then it works like charm.but i need to sync all the available data (offline data)
Thanks,
Logu
Friday, March 22, 2013 1:20 PM
All replies
-
can you fire up Fiddler and look at what the Content Length is for your request?
Friday, March 22, 2013 2:09 PM -
Hi,
I have used fiddler for check the content length.
The content length is : 65KB
Thanks
Logu
Monday, March 25, 2013 5:00 AM -
can you try increasing to a large value and see if it goes away? is 65kb an almost similar request to the one raising the error?
am sure i've done much bigger changesets before and never run to this issue before.
Monday, March 25, 2013 1:10 PM -
Hi Junet,
Thanks for your reply.
Can you please tell me , Which i need to increase ?. Are you meaning the entity size if so content length go beyond 65Kb i'm facing same issue.
awaiting for your reply.
Thanks in advance.
Logu
Monday, March 25, 2013 1:44 PM -
i mean the uploadreadaheadsize... set it to a high number...Monday, March 25, 2013 1:53 PM
-
I tried the following but no luck:
- appcmd.exe set config -section:system.webserver/serverruntime /uploadreadaheadsize: 1048576 /commit:apphost
- Modified the following in applicationHost.config
<section name="serverRuntime" overrideModeDefault="Allow" /> in the sectionGroup of "system.webServer"
Tuesday, March 26, 2013 1:49 PM -
i actually meant to ask you to put a much higher value than what you already tried to set...Tuesday, March 26, 2013 11:43 PM
-
I tried the following
- Updated the “uploadReadAheadSize” from “1048576 “ to 2147483647" in applicationhost.config file
- Modified the following in the web.config (Sync service)
<system.webServer>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="4294967295">
<serverRuntime uploadReadAheadSize="2147483647" />
</requestLimits>
</requestFiltering>
</security>
<modules runAllManagedModulesForAllRequests="true" />
<validation validateIntegratedModeConfiguration="false" />
</system.webServer>
<httpRuntime maxRequestLength="429496729" executionTimeout="3600" useFullyQualifiedRedirectUrl="true" />
After doing so I have getting the below error
“400: Bad Request error”
Wednesday, March 27, 2013 1:46 PM -
what else does Fiddler show? 400 is a very generic error.Saturday, March 30, 2013 4:44 AM