Server Error in '/' Application.

Object reference not set to an instance of an object.

Description: An unhandled exception occurred.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error:


Line 9:      var labels = LabelRepository.GetLabelsForView<ArticleContentLabels>();
Line 10:     var title = Model.Heading;
Line 11:     var summary = Url.Encode(Model.Teaser.ToString());
Line 12:     var url = WebUtil.GetServerUrl(false) + Model.Url;
Line 13:     var urlEncoded = Url.Encode(url);

Source File: E:\inetpub\wwwroot\acadian.verndale-prod.com\areas\feature_Articles\views\ShortFormMainContent.cshtml    Line: 11

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   ASP._Page_areas_feature_Articles_views_ShortFormMainContent_cshtml.Execute() in E:\inetpub\wwwroot\acadian.verndale-prod.com\areas\feature_Articles\views\ShortFormMainContent.cshtml:11
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +219
   System.Web.Mvc.WebViewPage.ExecutePageHierarchy() +147
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +106
   System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context) +377
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) +90
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) +647
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) +647
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult) +81
   System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +2442


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