Dear,
we are using LLBLGen Pro Runtime Framework version 5.0.6.
we are getting the following exception almost randomly. It rarely occurs, and so far only at one customer site. The query that produces the exception is executed almost every second for several hours/days and then from one moment to the next it raises this exception. It seems that the exception only started appearing after we updated from LLBLGen 4 to 5.
The message translates as follows: Extension node must override the property Expression.Type.
System.InvalidOperationException
Message: Der Erweiterungsknoten muss die Eigenschaft "Expression.Type" überschreiben.
Source: System.Core
TargetSite: System.Type get_Type()
StackTrace:
bei System.Linq.Expressions.Expression.get_Type()
bei SD.LLBLGen.Pro.LinqSupportClasses.LinqUtils.DetermineEntityTypeFromSetExpression(SetExpression expressionToCheck) in C:\Myprojects\VS.NET Projects\LLBLGen Pro v5.0\Frameworks\LLBLGen Pro\RuntimeLibraries\ORMSupportClasses\Linq\LinqUtils.cs:Zeile 745.
bei SD.LLBLGen.Pro.LinqSupportClasses.ExpressionHandlers.QueryExpressionBuilder.HandleAllAnyExpression(AllAnyExpression expressionToHandle) in C:\Myprojects\VS.NET Projects\LLBLGen Pro v5.0\Frameworks\LLBLGen Pro\RuntimeLibraries\ORMSupportClasses\Linq\ExpressionHandlers\QueryExpressionBuilder.cs:Zeile 1989.
bei SD.LLBLGen.Pro.LinqSupportClasses.ExpressionHandlers.GenericExpressionHandler.HandleExpression(Expression expressionToHandle) in C:\Myprojects\VS.NET Projects\LLBLGen Pro v5.0\Frameworks\LLBLGen Pro\RuntimeLibraries\ORMSupportClasses\Linq\ExpressionHandlers\GenericExpressionHandler.cs:Zeile 140.
bei SD.LLBLGen.Pro.LinqSupportClasses.ExpressionHandlers.QueryExpressionBuilder.HandleExpression(Expression expressionToHandle) in C:\Myprojects\VS.NET Projects\LLBLGen Pro v5.0\Frameworks\LLBLGen Pro\RuntimeLibraries\ORMSupportClasses\Linq\ExpressionHandlers\QueryExpressionBuilder.cs:Zeile 141.
bei SD.LLBLGen.Pro.LinqSupportClasses.ExpressionHandlers.QueryExpressionBuilder.HandleProjectionExpression(ProjectionExpression expressionToHandle) in C:\Myprojects\VS.NET Projects\LLBLGen Pro v5.0\Frameworks\LLBLGen Pro\RuntimeLibraries\ORMSupportClasses\Linq\ExpressionHandlers\QueryExpressionBuilder.cs:Zeile 2612.
bei SD.LLBLGen.Pro.LinqSupportClasses.ExpressionHandlers.GenericExpressionHandler.HandleExpression(Expression expressionToHandle) in C:\Myprojects\VS.NET Projects\LLBLGen Pro v5.0\Frameworks\LLBLGen Pro\RuntimeLibraries\ORMSupportClasses\Linq\ExpressionHandlers\GenericExpressionHandler.cs:Zeile 201.
bei SD.LLBLGen.Pro.LinqSupportClasses.ExpressionHandlers.QueryExpressionBuilder.HandleExpression(Expression expressionToHandle) in C:\Myprojects\VS.NET Projects\LLBLGen Pro v5.0\Frameworks\LLBLGen Pro\RuntimeLibraries\ORMSupportClasses\Linq\ExpressionHandlers\QueryExpressionBuilder.cs:Zeile 141.
bei SD.LLBLGen.Pro.LinqSupportClasses.ExpressionHandlers.GenericExpressionHandler.HandleSelectExpression(SelectExpression expressionToHandle, SelectExpression newInstance) in C:\Myprojects\VS.NET Projects\LLBLGen Pro v5.0\Frameworks\LLBLGen Pro\RuntimeLibraries\ORMSupportClasses\Linq\ExpressionHandlers\GenericExpressionHandler.cs:Zeile 841.
bei SD.LLBLGen.Pro.LinqSupportClasses.ExpressionHandlers.GenericExpressionHandler.HandleSelectExpression(SelectExpression expressionToHandle) in C:\Myprojects\VS.NET Projects\LLBLGen Pro v5.0\Frameworks\LLBLGen Pro\RuntimeLibraries\ORMSupportClasses\Linq\ExpressionHandlers\GenericExpressionHandler.cs:Zeile 821.
bei SD.LLBLGen.Pro.LinqSupportClasses.ExpressionHandlers.QueryExpressionBuilder.HandleSelectExpression(SelectExpression expressionToHandle) in C:\Myprojects\VS.NET Projects\LLBLGen Pro v5.0\Frameworks\LLBLGen Pro\RuntimeLibraries\ORMSupportClasses\Linq\ExpressionHandlers\QueryExpressionBuilder.cs:Zeile 3182.
bei SD.LLBLGen.Pro.LinqSupportClasses.ExpressionHandlers.GenericExpressionHandler.HandleExpression(Expression expressionToHandle) in C:\Myprojects\VS.NET Projects\LLBLGen Pro v5.0\Frameworks\LLBLGen Pro\RuntimeLibraries\ORMSupportClasses\Linq\ExpressionHandlers\GenericExpressionHandler.cs:Zeile 207.
bei SD.LLBLGen.Pro.LinqSupportClasses.ExpressionHandlers.QueryExpressionBuilder.HandleExpression(Expression expressionToHandle) in C:\Myprojects\VS.NET Projects\LLBLGen Pro v5.0\Frameworks\LLBLGen Pro\RuntimeLibraries\ORMSupportClasses\Linq\ExpressionHandlers\QueryExpressionBuilder.cs:Zeile 141.
bei SD.LLBLGen.Pro.LinqSupportClasses.LLBLGenProProviderBase.HandleExpressionTree(Expression expression) in C:\Myprojects\VS.NET Projects\LLBLGen Pro v5.0\Frameworks\LLBLGen Pro\RuntimeLibraries\ORMSupportClasses\Linq\LLBLGenProProviderBase.cs:Zeile 204.
bei SD.LLBLGen.Pro.LinqSupportClasses.LLBLGenProProviderBase.System.Linq.IQueryProvider.Execute[TResult](Expression expression) in C:\Myprojects\VS.NET Projects\LLBLGen Pro v5.0\Frameworks\LLBLGen Pro\RuntimeLibraries\ORMSupportClasses\Linq\LLBLGenProProviderBase.cs:Zeile 774.
bei System.Linq.Queryable.Any[TSource](IQueryable`1 source)
bei xxx
The query looks as follows:
(From TPara In linqmetadata.TPara
Where Not TPara.TPara_CacheCreated.HasValue _
OrElse (TPara.TPara_CacheCorrupted.HasValue _
AndAlso TPara.TPara_CacheCorrupted > TPara.TPara_CacheCreated) _
AndAlso LinqToLLBLGenFunctions.SmallerThanGetDate(TPara.TPara_CacheCorrupted.Value.AddSeconds(delaySeconds))).Any Then
Where LinqToLLBLGenFunctions.SmallerThanGetDate is a custom function mapping defined as follows:
Public Shared Function SmallerThanGetDate(feld As Date) As Boolean
Return Nothing
End Function
New FunctionMapping(GetType(LinqToLLBLGenFunctions), "SmallerThanGetDate", 1, "({0} < GETDATE())")
Any help would be greatly appreciated.
Best,
acl