Server Error in '/' Application.

Object reference not set to an instance of an object.

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.NullReferenceException: Object reference not set to an instance of an object.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   lambda_method(Closure ) +64

[TargetInvocationException: Exception has been thrown by the target of an invocation.]
   System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) +0
   System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) +269
   System.Delegate.DynamicInvokeImpl(Object[] args) +160
   Microsoft.Xrm.Sdk.Linq.QueryProvider.DynamicInvoke(Delegate project, Object[] args) +105
   Microsoft.Xrm.Sdk.Linq.QueryProvider.TranslateExpressionToConditionValue(Expression exp, ParameterExpression[] parameters) +16
   Microsoft.Xrm.Sdk.Linq.QueryProvider.TranslateWhereCondition(BinaryExpression be, FilterExpressionWrapper parentFilter, Func`2 getFilter, Func`2 getLinkLookup, Boolean negate) +146
   Microsoft.Xrm.Sdk.Linq.QueryProvider.TranslateWhere(String parameterName, BinaryExpression be, FilterExpressionWrapper parentFilter, Func`2 getFilter, List`1 linkLookups, Boolean negate) +749
   Microsoft.Xrm.Sdk.Linq.QueryProvider.GetQueryExpression(Expression expression, Boolean& throwIfSequenceIsEmpty, Boolean& throwIfSequenceNotSingle, Projection& projection, NavigationSource& source, List`1& linkLookups) +2706
   Microsoft.Xrm.Sdk.Linq.QueryProvider.Execute(Expression expression) +172
   Microsoft.Xrm.Sdk.Linq.QueryProvider.System.Linq.IQueryProvider.Execute(Expression expression) +72
   Adxstudio.Xrm.Cms.OrganizationServiceContextExtensions.GetChildPages(OrganizationServiceContext context, Entity webPage) in C:\__w\1\s\Framework\Adxstudio.Xrm\Cms\OrganizationServiceContextExtensions.cs:362
   Adxstudio.Xrm.Web.UrlMapping.LookupPageByUrlPath(OrganizationServiceContext context, Entity website, String urlPath, Func`2 predicate) in C:\__w\1\s\Framework\Adxstudio.Xrm\Web\UrlMapping.cs:141
   Adxstudio.Xrm.Web.UrlHistoryRedirectProvider.FindPage(OrganizationServiceContext context, Entity website, String path) in C:\__w\1\s\Framework\Adxstudio.Xrm\Web\UrlHistoryRedirectProvider.cs:143
   Adxstudio.Xrm.Web.UrlHistoryRedirectProvider.Match(Guid websiteID, UrlBuilder url) in C:\__w\1\s\Framework\Adxstudio.Xrm\Web\UrlHistoryRedirectProvider.cs:65
   Adxstudio.Xrm.Web.CompositeRedirectProvider.Match(Guid websiteID, UrlBuilder url) in C:\__w\1\s\Framework\Adxstudio.Xrm\Web\CompositeRedirectProvider.cs:25
   Adxstudio.Xrm.Web.Routing.PortalRouteHandler.OnPortalLoaded(RequestContext requestContext, IPortalContext portal) in C:\__w\1\s\Framework\Adxstudio.Xrm\Web\Routing\PortalRouteHandler.cs:185
   Adxstudio.Xrm.Web.Routing.PortalRouteHandler.GetHttpHandler(RequestContext requestContext) in C:\__w\1\s\Framework\Adxstudio.Xrm\Web\Routing\PortalRouteHandler.cs:73
   System.Web.Routing.UrlRoutingModule.PostResolveRequestCache(HttpContextBase context) +219
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +223
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +220
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +94


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4690.0