New Posts New Posts RSS Feed: Not able to return +2500 altered entities to the server
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Not able to return +2500 altered entities to the server

 Post Reply Post Reply
Author
rasmus View Drop Down
Groupie
Groupie


Joined: 05-Aug-2009
Location: Denmark
Posts: 63
Post Options Post Options   Quote rasmus Quote  Post ReplyReply Direct Link To This Post Topic: Not able to return +2500 altered entities to the server
    Posted: 21-Aug-2009 at 2:20pm
The <httpRuntime maxRequestLength="102400"/> did the trick. Thanks a lot :-)
Back to Top
kimj View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 09-May-2007
Posts: 1391
Post Options Post Options   Quote kimj Quote  Post ReplyReply Direct Link To This Post Posted: 21-Aug-2009 at 10:35am
Also try adding an httpRuntime section to the web.config to override the MaxRequestLength, which defaults to a maximum upload size of 4 meg.  Here it's set to 100 meg:
 
  <system.web>
    <httpRuntime maxRequestLength="102400"/>
  </system.web>
 
It's possible that the problem could be a timeout, although I'd expect a TimeoutException to be received rather than the vanilla CommunicationException.  You can modify the send and receive timeout defaults (which are 1 minute for a send and 10 minutes for a receive) using the <binding> element:
 
        <binding name="customBinaryBinding"
                 receiveTimeout="00:10:00"
                 sendTimeout="00:01:00">

Back to Top
rasmus View Drop Down
Groupie
Groupie


Joined: 05-Aug-2009
Location: Denmark
Posts: 63
Post Options Post Options   Quote rasmus Quote  Post ReplyReply Direct Link To This Post Posted: 19-Aug-2009 at 4:42pm
Hi
 
I have an app. returning approx 8000 entities to the client through a query. If I alter fx 1000 entities on the client and submit them using Manager.SaveChangesAsync everything is fine, but if I change more than 2500 entities and submit them, i get an:
 
 " args.Error {IdeaBlade.EntityModel.EntityManagerSaveException: The remote server returned an error: NotFound. ---> System.ServiceModel.CommunicationException: The remote server returned an error: NotFound. ---> System.Net.WebException: The remote server returned an error: NotFound. ---> System.Net.WebException: The remote server returned an error: NotFound..."

My web.config looks like this:

<binding name="customBinaryBinding">

<binaryMessageEncoding>

<readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647" />

</binaryMessageEncoding>

<httpTransport maxReceivedMessageSize="2147483647" maxBufferSize="2147483647" />

</binding>

I have tried creating a ServiceReferences.ClientConfig for my silverlight project using these values for binding:

<customBinding>

<!-- Custom binding using http, binary encoding, no security -->

<binding name="customBinaryBinding">

<binaryMessageEncoding />

<httpTransport maxReceivedMessageSize="2147483647" maxBufferSize="2147483647" />

</binding>

</customBinding>

 
But with no luck.
 
I suspect some setting is not correct, hope you can help me identify which
 
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down