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:


Line 67:                 @if (!Request.Browser.IsMobileDevice &&  MyRequestContext.Current.Domain.Language == "en"){<div style="position:relative; float:right; padding:5px; margin-right:-170px; margin-bottom:-600px;">@Ad.RenderAd("ad_page_sky.htm")</div><div style="position:relative; float:left; padding:5px; margin-left:-170px; margin-bottom:-600px;">@Ad.RenderAd("ad_page_sky_left.htm")</div>}
Line 68:                 @if (!Model.IsMain)
Line 69:             {<div id="bread_crumble_block"><div class="pull-right">@Ad.RenderAd("addthis.htm")</div><a href="/"><i class="home icon"></i></a>&nbsp;\&nbsp;@Html.Raw(Model.PageBreadCrumble)<div class="cl"></div></div>}
Line 70:                 <div id="content_block">
Line 71:                     @Controls.RenderHttpNotFoundMessage()

Source File: C:\data\bmwfans.info\web\Views\Templates\bmwfans_info\_Default.cshtml    Line: 69

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   SMS.Common.PageViewModel.get_PageBreadCrumble() in E:\Projects\SMS43\SMS.Common\PageViewModel.cs:124
   ASP._Page_Views_Templates_bmwfans_info__Default_cshtml.Execute() in C:\data\bmwfans.info\web\Views\Templates\bmwfans_info\_Default.cshtml:69
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +251
   System.Web.Mvc.WebViewPage.ExecutePageHierarchy() +147
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +121
   System.Web.WebPages.<>c__DisplayClass3.<RenderPageCore>b__2(TextWriter writer) +308
   System.Web.WebPages.WebPageBase.Write(HelperResult result) +107
   System.Web.WebPages.WebPageBase.RenderSurrounding(String partialViewName, Action`1 body) +88
   System.Web.WebPages.WebPageBase.PopContext() +309
   System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context) +374
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) +87
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) +775
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult) +81
   System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +973
   System.Web.Mvc.Controller.ExecuteCore() +128
   System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext) +235
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +790
   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.3535.0