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 ) +167

[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) +260
   System.Delegate.DynamicInvokeImpl(Object[] args) +153
   MongoDB.Driver.Linq.SubtreeEvaluator.EvaluateSubtree(Expression e) +97
   MongoDB.Driver.Linq.ExpressionVisitor.VisitBinary(BinaryExpression node) +53
   MongoDB.Driver.Linq.ExpressionVisitor.VisitBinary(BinaryExpression node) +53
   MongoDB.Driver.Linq.ExpressionVisitor.VisitLambda(LambdaExpression node) +22
   MongoDB.Driver.Linq.ExpressionVisitor.VisitUnary(UnaryExpression node) +22
   MongoDB.Driver.Linq.ExpressionVisitor.Visit(ReadOnlyCollection`1 nodes) +92
   MongoDB.Driver.Linq.ExpressionVisitor.VisitMethodCall(MethodCallExpression node) +69
   MongoDB.Driver.Linq.ExpressionVisitor.Visit(ReadOnlyCollection`1 nodes) +92
   MongoDB.Driver.Linq.ExpressionVisitor.VisitMethodCall(MethodCallExpression node) +69
   MongoDB.Driver.Linq.ExpressionVisitor.Visit(ReadOnlyCollection`1 nodes) +92
   MongoDB.Driver.Linq.ExpressionVisitor.VisitMethodCall(MethodCallExpression node) +69
   MongoDB.Driver.Linq.ExpressionVisitor.Visit(ReadOnlyCollection`1 nodes) +92
   MongoDB.Driver.Linq.ExpressionVisitor.VisitMethodCall(MethodCallExpression node) +69
   MongoDB.Driver.Linq.PartialEvaluator.Evaluate(Expression expression, IQueryProvider queryProvider) +235
   MongoDB.Driver.Linq.MongoQueryTranslator.Translate(MongoQueryProvider provider, Expression expression) +25
   MongoDB.Driver.Linq.MongoQueryProvider.Execute(Expression expression) +15
   MongoDB.Driver.Linq.MongoQueryProvider.Execute(Expression expression) +98
   Project.Store.Service.UrlRecordService.GetBySlug(String slug) +2365
   Project.Store.Service.UrlRecordService.GetBySlugCached(String slug) +106
   Project.Store.Framework.Seo.GenericPathRoute.GetRouteData(HttpContextBase httpContext) +299
   System.Web.Routing.RouteCollection.GetRouteData(HttpContextBase httpContext) +228
   System.Web.Routing.UrlRoutingModule.PostResolveRequestCache(HttpContextBase context) +70
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +139
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +195
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +88


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