Hi,

I've got a curious problem. From time to time DO throws an InvalidOperation exception telling me the message below. It is not persistant because at a next access to the server the results are delivered as expected.

what could cause this?

Regards Paul

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.InvalidOperationException: Type 'Projecten.Model.Entities.RootEntity' is not found in model.

[InvalidOperationException]: Type 'Projecten.Model.Entities.RootEntity' is not found in model. at Xtensive.Orm.Linq.Translator.ConstructQueryable(MethodCallExpression mc) at Xtensive.Orm.Linq.Translator.VisitMethodCall(MethodCallExpression mc) at Xtensive.Linq.ExpressionVisitor1.Visit(Expression e) at Xtensive.Orm.Linq.Translator.Visit(Expression e) at Xtensive.Orm.Linq.Translator.VisitSequence(Expression sequenceExpression, Expression expressionPart) at Xtensive.Orm.Linq.Translator.VisitSequence(Expression sequenceExpression) at Xtensive.Orm.Linq.Translator.VisitWhere(Expression expression, LambdaExpression le) at Xtensive.Orm.Linq.Translator.VisitQueryableMethod(MethodCallExpression mc, QueryableMethodKind methodKind) at Xtensive.Linq.QueryableVisitor.VisitMethodCall(MethodCallExpression mc) at Xtensive.Orm.Linq.Translator.VisitMethodCall(MethodCallExpression mc) at Xtensive.Linq.ExpressionVisitor1.Visit(Expression e) at Xtensive.Orm.Linq.Translator.Visit(Expression e) at Xtensive.Orm.Linq.Translator.VisitSequence(Expression sequenceExpression, Expression expressionPart) at Xtensive.Orm.Linq.Translator.VisitSequence(Expression sequenceExpression) at Xtensive.Orm.Linq.Translator.VisitFirstSingle(Expression source, LambdaExpression predicate, MethodInfo method, Boolean isRoot) at Xtensive.Orm.Linq.Translator.VisitQueryableMethod(MethodCallExpression mc, QueryableMethodKind methodKind) at Xtensive.Linq.QueryableVisitor.VisitMethodCall(MethodCallExpression mc) at Xtensive.Orm.Linq.Translator.VisitMethodCall(MethodCallExpression mc) at Xtensive.Linq.ExpressionVisitor1.Visit(Expression e) at Xtensive.Orm.Linq.Translator.Visit(Expression e) at Xtensive.Orm.Linq.Translator.Translate[TResult]() at Xtensive.Orm.Linq.QueryProvider.Translate[TResult](Expression expression, CompilerConfiguration compilerConfiguration) [QueryTranslationException]: Unable to translate 'Query.All().Where(RootEntityItem => (RootEntityItem.Id == @.id)).FirstOrDefault()' expression. See inner exception for details. at Xtensive.Orm.Linq.QueryProvider.Translate[TResult](Expression expression, CompilerConfiguration compilerConfiguration) at Xtensive.Orm.Linq.QueryProvider.Translate[TResult](Expression expression) at Xtensive.Orm.Linq.QueryProvider.Execute[TResult](Expression expression) at System.Linq.Queryable.FirstOrDefault[TSource](IQueryable1 source) at Projecten.Model.Entities.RootEntity.GetById(Int64 id) in c:\NotScanned\Ontwikkeling\ControlIT\trunk\Projecten.Model\ModelExtensions\RootEntity.Generated.cs:line 195 at Projecten.Viewmodel.VMRootEntity.GetById(Object sender, Int64 id) in c:\NotScanned\Ontwikkeling\ControlIT\trunk\Projecten.Viewmodel\VMRootEntity.generated.cs:line 76 at Projecten.WebApplication.Controllers.PadPlanningController.PlanningImage(Int32 id) in c:\NotScanned\Ontwikkeling\ControlIT\trunk\Projecten.WebApplication\Controllers\PadPlanningController.cs:line 20 at lambda_method(Closure , ControllerBase , Object[] )

asked Apr 17 '13 at 08:38

Paul%20Sinnema's gravatar image

Paul Sinnema
261858896

edited Apr 17 '13 at 08:46

Hi Denis,

Any news on this?

Regards Paul

(Apr 25 '13 at 05:04) Paul Sinnema Paul%20Sinnema's gravatar image
Be the first one to answer this question!
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!
toggle preview

Subscription:

Once you sign in you will be able to subscribe for any updates here

Tags:

×3
×2

Asked: Apr 17 '13 at 08:38

Seen: 709 times

Last updated: Apr 25 '13 at 05:04

powered by OSQA