New Posts New Posts RSS Feed: InvalidOperationException while accessing a navigation property
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

InvalidOperationException while accessing a navigation property

 Post Reply Post Reply
Author
kdev View Drop Down
Groupie
Groupie
Avatar

Joined: 03-Jan-2013
Posts: 83
Post Options Post Options   Quote kdev Quote  Post ReplyReply Direct Link To This Post Topic: InvalidOperationException while accessing a navigation property
    Posted: 11-Apr-2014 at 5:21am
Hi,

I noticed (CLR exceptions ON) many exception, close to 25, during a very long procedure on the server.

Since I find this procedure is taking too much time, I wonder if those exceptions could slow down a lot the procedure like it was for the previous issue.

I get this one a lot, most often when I access a Navigation Property (RelatedEntityList)

L'exception System.InvalidOperationException s'est produite
  _HResult=-2146233079
  _message=Cannot invert - root level projection
  HResult=-2146233079
  IsTransient=false
  Message=Cannot invert - root level projection
  Source=IdeaBlade.EntityModel
  StackTrace:
       à IdeaBlade.EntityModel.Edm.Shared.NavigationPropertyExpressionVisitor.VisitCall(MethodCallExpression mce, Expression objectExpr, IEnumerable`1 argExpressions)
  InnerException: 

I don't understand why I get these exceptions. I tried toi deactivate or set to manual the QueryInversion on my entitymanager, but I still get them.
Does it means my model is wrong or that the previous query I used to load parts of these data are incomplete ?


I also get this kind of exception.

L'exception System.InvalidOperationException s'est produite
Message: Une exception de première chance de type 'System.InvalidOperationException' s'est produite dans IdeaBlade.EntityModel.dll
Informations supplémentaires : Unable to construct inverted path for:
Type: MyApp.Module.Domain.Entities.MouvementDetail  Property: Mouvement
Type: MyApp.Module.Domain.Entities.MouvementDetail  Property: PeriodesGenerations



Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down