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.]
   System.Data.Entity.Core.Objects.ELinq.QueryParameterExpression.EvaluateParameter(Object[] arguments) +414
   System.Data.Entity.Core.Objects.ELinq.ELinqQueryState.GetExecutionPlan(Nullable`1 forMergeOption) +1467
   System.Data.Entity.Core.Objects.<>c__DisplayClass7.<GetResults>b__6() +38
   System.Data.Entity.Core.Objects.ObjectContext.ExecuteInTransaction(Func`1 func, IDbExecutionStrategy executionStrategy, Boolean startLocalTransaction, Boolean releaseConnectionOnSuccess) +459
   System.Data.Entity.Core.Objects.<>c__DisplayClass7.<GetResults>b__5() +203
   System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.Execute(Func`1 operation) +234
   System.Data.Entity.Core.Objects.ObjectQuery`1.GetResults(Nullable`1 forMergeOption) +354
   System.Data.Entity.Core.Objects.ObjectQuery`1.<System.Collections.Generic.IEnumerable<T>.GetEnumerator>b__0() +30
   System.Data.Entity.Internal.LazyEnumerator`1.MoveNext() +39
   System.Collections.Generic.List`1..ctor(IEnumerable`1 collection) +436
   System.Linq.Enumerable.ToList(IEnumerable`1 source) +69
   Steam.Repo.StructureRepo.GetStructureContentForUrlSynchronous(String cleanUrl, Boolean live) in G:\Develop\SteamCMS-VSTS\Guiseley Mobility\Guiseley Mobility\Steam.Repo\StructureRepo.cs:276
   Steam.Service.StructureService.GetStructureContentForUrlSynchronous(String cleanUrl) in G:\Develop\SteamCMS-VSTS\Guiseley Mobility\Guiseley Mobility\Steam.Service\StructureService.cs:497
   Steam.Web.Areas.SteamCMS.ContentRoutingEngine.GetRouteData(HttpContextBase httpContext) in G:\Develop\SteamCMS-VSTS\Guiseley Mobility\Guiseley Mobility\Steam.Web\Areas\SteamCMS\SteamCMSAreaRegistration.cs:140
   System.Web.Routing.RouteCollection.GetRouteData(HttpContextBase httpContext) +258
   System.Web.Routing.UrlRoutingModule.PostResolveRequestCache(HttpContextBase context) +68
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +223
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +213
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +91


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