Hi support, i have a problem with my code.
Here is the detail of the Exception
Method `Mindscape.LightSpeed.Querying.Group:set_Mode (Mindscape.LightSpeed.Querying.Group/QueryMode)' is inaccessible from method `Mindscape.LightSpeed.Linq.Sqo.Where:ExtractWhereCriteria (System.Linq.Expressions.MethodCallExpression,Mindscape.LightSpeed.Linq.Plan.LinqQueryPlanExpression,Mindscape.LightSpeed.Linq.Plan.GroupResultsPlan)'
Description: HTTP 500. Error processing request.
Stack Trace:
System.MethodAccessException: Method `Mindscape.LightSpeed.Querying.Group:set_Mode (Mindscape.LightSpeed.Querying.Group/QueryMode)' is inaccessible from method `Mindscape.LightSpeed.Linq.Sqo.Where:ExtractWhereCriteria (System.Linq.Expressions.MethodCallExpression,Mindscape.LightSpeed.Linq.Plan.LinqQueryPlanExpression,Mindscape.LightSpeed.Linq.Plan.GroupResultsPlan)'
at Mindscape.LightSpeed.Linq.Sqo.Where.Evaluate (Mindscape.LightSpeed.Linq.Plan.ExpressionVisitor visitor, System.Linq.Expressions.MethodCallExpression expression) [0x00000] in <filename unknown>:0
at Mindscape.LightSpeed.Linq.Plan.LinqQueryBuilder.VisitMethodCall (System.Linq.Expressions.MethodCallExpression exp) [0x00000] in <filename unknown>:0
at Mindscape.LightSpeed.Linq.Plan.LinqQueryBuilder.Visit (System.Linq.Expressions.Expression exp) [0x00000] in <filename unknown>:0
at Mindscape.LightSpeed.Linq.Sqo.Select.Evaluate (Mindscape.LightSpeed.Linq.Plan.ExpressionVisitor visitor, System.Linq.Expressions.MethodCallExpression expression) [0x00000] in <filename unknown>:0
at Mindscape.LightSpeed.Linq.Plan.LinqQueryBuilder.VisitMethodCall (System.Linq.Expressions.MethodCallExpression exp) [0x00000] in <filename unknown>:0
at Mindscape.LightSpeed.Linq.Plan.LinqQueryBuilder.Visit (System.Linq.Expressions.Expression exp) [0x00000] in <filename unknown>:0
at Mindscape.LightSpeed.Linq.Sqo.Select.Evaluate (Mindscape.LightSpeed.Linq.Plan.ExpressionVisitor visitor, System.Linq.Expressions.MethodCallExpression expression) [0x00000] in <filename unknown>:0
at Mindscape.LightSpeed.Linq.Plan.LinqQueryBuilder.VisitMethodCall (System.Linq.Expressions.MethodCallExpression exp) [0x00000] in <filename unknown>:0
at Mindscape.LightSpeed.Linq.Plan.LinqQueryBuilder.Visit (System.Linq.Expressions.Expression exp) [0x00000] in <filename unknown>:0
at Mindscape.LightSpeed.Linq.Sqo.First.Evaluate (Mindscape.LightSpeed.Linq.Plan.ExpressionVisitor visitor, System.Linq.Expressions.MethodCallExpression expression) [0x00000] in <filename unknown>:0
at Mindscape.LightSpeed.Linq.Plan.LinqQueryBuilder.VisitMethodCall (System.Linq.Expressions.MethodCallExpression exp) [0x00000] in <filename unknown>:0
at Mindscape.LightSpeed.Linq.Plan.LinqQueryBuilder.Visit (System.Linq.Expressions.Expression exp) [0x00000] in <filename unknown>:0
at Mindscape.LightSpeed.Linq.Plan.LinqQueryBuilder.Build (System.Linq.Expressions.Expression translation, Mindscape.LightSpeed.Linq.LinqQueryProvider provider) [0x00000] in <filename unknown>:0
at Mindscape.LightSpeed.Linq.LinqQueryProvider.GetExecutionPlan (System.Linq.Expressions.Expression expression) [0x00000] in <filename unknown>:0
at Mindscape.LightSpeed.Linq.LinqQueryProvider.Execute (System.Linq.Expressions.Expression expression) [0x00000] in <filename unknown>:0
at Mindscape.LightSpeed.Linq.LinqQueryProvider.System.Linq.IQueryProvider.Execute[<>f__AnonymousType9`4] (System.Linq.Expressions.Expression expression) [0x00000] in <filename unknown>:0
at System.Linq.Queryable.First[<>f__AnonymousType9`4] (IQueryable`1 source) [0x00000] in <filename unknown>:0
at Triboo.Advercy.Web.ClickHandler.get_ClickItem () [0x00000] in <filename unknown>:0
at Triboo.Advercy.Web.ClickHandler.ProcessRequest () [0x00000] in <filename unknown>:0
at Triboo.Advercy.Web.BaseHandler.ProcessRequest (System.Web.HttpContext context) [0x00000] in <filename unknown>:0
at System.Web.HttpApplication+<Pipeline>c__Iterator2.MoveNext () [0x00000] in <filename unknown>:0
at System.Web.HttpApplication.Tick () [0x00000] in <filename unknown>:0
|
Version information: Mono Runtime Version: 2.6.4 (tarball ven mag 14 10:07:09 CEST 2010); ASP.NET Version: 2.0.50727.1433
My application have this problem in randomic moments (sometimes for every request, sometimes for half the requests)
Here is the 2 query code i use
var rec = (
from b in MasterUnitOfWork.Banners
where b.Id == ClickContext.BannerId
let c = b.Campaign
select new { CampaignId = c.Id, c.Cookielifetime, c.Rstatus, b.Destinationurl }
).First();
var pi = from o in MasterUnitOfWork.CommissionsViews
where o.Userid == UserId && o.Commissionname == Config.PostImpressionCommissionName && o.Commissionstatus == "E"
select o;
if (pi != null && pi.Count() > 0)
Boolean hasPI = true;
I write in C#
Have some hints about this error?
Regards
Daniele Mantovani