Print Page | Close Window

IdeaBlade.EntityModel.EntityManagerSaveException

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=2903
Printed Date: 25-Mar-2025 at 12:29pm


Topic: IdeaBlade.EntityModel.EntityManagerSaveException
Posted By: Deceased
Subject: IdeaBlade.EntityModel.EntityManagerSaveException
Date Posted: 17-Aug-2011 at 12:57am
Hi, I get the following exception when trying to save an entity:

Exception msg: The remote server returned an error: NotFound.

Stack:
   at IdeaBlade.EntityModel.EntityManager.HandleEntityServerException(Exception ex, Boolean tryToHandle, PersistenceOperation operation, Boolean throwOnError)
   at IdeaBlade.EntityModel.EntityManager.HandleSaveResultException(SaveWorkState saveWorkState, Boolean isAsyncOp)

System.ServiceModel.CommunicationException

Exception msg: The remote server returned an error: NotFound.

Stack:
   at IdeaBlade.EntityModel.EntityServerProxy.ExecFunc[T](Func`1 func, Boolean funcWillHandleException)
   at IdeaBlade.EntityModel.EntityServerProxy.ExecuteOnServer[T](Func`1 func, Boolean funcWillHandleException)
   at IdeaBlade.EntityModel.EntityServerProxy.SaveChanges(SaveWorkState workState)
   at IdeaBlade.EntityModel.EntityManager.SaveEntitiesCore(SaveWorkState workState)

System.Net.WebException

Exception msg: The remote server returned an error: NotFound.

Stack:
   at System.Net.Browser.AsyncHelper.BeginOnUI(SendOrPostCallback beginMethod, Object state)
   at System.Net.Browser.BrowserHttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
   at System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelAsyncRequest.CompleteGetResponse(IAsyncResult result)

....................................................................................................................................................................................................

I create the entity in the same way that I create entities throughout my entire project.
For example:
 var newNode = EM.Instance.CreateEntity<Node>();
 ... Then add a bunch of properties to the node, eg: Name, Size, etc.
 Then I add the entity to the Entity Manager (EM) via: EM.Instance.AddEntity(newNode);

 Lastly I save the entity asynchronously: EM.Instance.SaveChangesAsync();

.....................................................................................................................................................................................................

Now for the bit of wackness that I'm experiencing:
- When saving other entities, Ideablade works beautifully.
- When saving a "Node" with a size above 2MB the exception gets thrown.
- When saving a "Node" with a size below 2MB, Ideablade works beautifully.
+ What's really wack, would be that this just started happening, previously I could upload "Nodes" with size above 10MBs.

........................................................................................................................................................................................................

I would GREATLY appreciate it to just be informed what this exception is, as I cannot pin it down by debugging.
(I'm aware of the fact that chances are 99.9%, that I'm just being a nab, and I'm okay with that, I'm kind of just hoping to be pointed in a direction to start solving this problem.)

Thanks in advance for any help.





Replies:
Posted By: sbelini
Date Posted: 18-Aug-2011 at 9:56am
Hi Deceased,
 
The error you are getting is a generic error.
You will be able to get more detail by using Fiddler and/or WCF Tracing.
You can download Fiddler at http://www.fiddler2.com/fiddler2/ - http://www.fiddler2.com/fiddler2/  and find more about tracing in the http://drc.ideablade.com/xwiki/bin/view/Documentation/traceviewer - DevForce Resource Center .
 
Regards,
   Silvio.


Posted By: Deceased
Date Posted: 19-Aug-2011 at 6:09am
Thank you I will check them out

Regards



Print Page | Close Window