Print Page | Close Window

Limit when saving entities???

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2010
Forum Discription: For .NET 4.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=2341
Printed Date: 23-Oct-2025 at 11:00am


Topic: Limit when saving entities???
Posted By: Andrew
Subject: Limit when saving entities???
Date Posted: 30-Nov-2010 at 8:24am
Hi DevForce-Team,
 
I'm struggling with a problem while saving (to) many entities.
The error I receive is: The remote server returned an error: NotFound!
 
I can reproduce the error very simple when creating a large amount of entities (e.g. 5000),
add them to the entity manager and then call SaveChangesAsnyc.
 
When I reduce the number of created (or updated = same issue) entities there
is no error and everything works fine like I'm used to it.
The whole application is working fine with dozens of entity manipulations.
 
It doesn't matter what kind of entity is created or updated and saved.
I made several tests with different situations.
The only thing I have to do is exceed the number of affected entities the manager has to save.
 
So what can I do?
Do I have to switch to the special configs?
Today I work without extra configs like you recommend using the DevForce-VS-2010 templates!
 
Thank you in advance.
Best Regards
Andrew
 
 
 
 
 
 



Replies:
Posted By: DenisK
Date Posted: 01-Dec-2010 at 11:45am
Hi Andrew;

There is no pre defined limit on saving a large number of entities. Unfortunately, the error being returned does not help us pinpoint the problem either.

Here are my suggestions:

1. Try setting <httpRuntime maxRequestLength="102400"/> to a bigger number. Please see the following sites for more info.

http://support.softartisans.com/kbview_825.aspx - http://support.softartisans.com/kbview_825.aspx
http://msdn.microsoft.com/en-us/library/e1f13641.aspx - http://msdn.microsoft.com/en-us/library/e1f13641.aspx


2. If the above doesn't work, we might need to do more tracing. Could you see if you can try this?

http://mokosh.co.uk/post/2009/06/15/silverlight-and-wcf-wcf-logs-and-debugging/ - http://mokosh.co.uk/post/2009/06/15/silverlight-and-wcf-wcf-logs-and-debugging/  


Posted By: Andrew
Date Posted: 01-Dec-2010 at 2:43pm
Hi Denis,
 
the 
 
<httpRuntime maxRequestLength="102400" />
 
setting worked immediately.
 
I should have known this one from a former WCF project.
 
Thank you very much. It saved my day.
 
Best Regards
Andrew
 



Print Page | Close Window