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 20: <div class="@CSS1">
Line 21: 			
Line 22:     @Html.Sitecore().Placeholder("main")
Line 23: 				
Line 24: </div>

Source File: d:\Inetpub\wwwroot\A01686\eatright.org\www\Views\SubLayouts\Body\main-rail.cshtml    Line: 22

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   AE.Models.Public.LatestMainArticle.Initialize(Rendering rendering) in c:\TeamCity\buildAgent\work\832dfd45048a816f\Website\Models\Public\LatestMainArticle.cs:35
   (Object , Object[] ) +82
   Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args) +305
   Sitecore.Mvc.Pipelines.PipelineService.RunPipeline(String pipelineName, TArgs args) +160
   Sitecore.Mvc.Pipelines.PipelineService.RunPipeline(String pipelineName, TArgs args, Func`2 resultGetter) +196
   Sitecore.Mvc.Presentation.Rendering.GetModel() +370
   Sitecore.Mvc.Presentation.Rendering.get_Model() +26
   Sitecore.Mvc.Presentation.ViewRenderer.get_Model() +162
   Sitecore.Mvc.Presentation.ViewRenderer.Render(TextWriter writer) +159

[InvalidOperationException: Error while rendering view: '/Views/Public/LatestMainArticle.cshtml'.
]
   Sitecore.Mvc.Presentation.ViewRenderer.Render(TextWriter writer) +691
   Sitecore.Mvc.Pipelines.Response.RenderRendering.ExecuteRenderer.Render(Renderer renderer, TextWriter writer, RenderRenderingArgs args) +27
   Sitecore.Mvc.Pipelines.Response.RenderRendering.ExecuteRenderer.Process(RenderRenderingArgs args) +62
   (Object , Object[] ) +83
   Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args) +306
   Sitecore.Mvc.Pipelines.PipelineService.RunPipeline(String pipelineName, TArgs args) +161
   Sitecore.Mvc.Pipelines.Response.RenderPlaceholder.PerformRendering.Render(String placeholderName, TextWriter writer, RenderPlaceholderArgs args) +177
   (Object , Object[] ) +83
   Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args) +306
   Sitecore.Mvc.Pipelines.PipelineService.RunPipeline(String pipelineName, TArgs args) +161
   Sitecore.Mvc.Helpers.SitecoreHelper.Placeholder(String placeholderName) +234
   ASP._Page_Views_SubLayouts_Body_main_rail_cshtml.Execute() in d:\Inetpub\wwwroot\A01686\eatright.org\www\Views\SubLayouts\Body\main-rail.cshtml:22
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +280
   System.Web.Mvc.WebViewPage.ExecutePageHierarchy() +136
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +119
   System.Web.Mvc.Html.PartialExtensions.Partial(HtmlHelper htmlHelper, String partialViewName, Object model, ViewDataDictionary viewData) +159
   Sitecore.Mvc.Presentation.ViewRenderer.Render(TextWriter writer) +194

[InvalidOperationException: Error while rendering view: '/Views/SubLayouts/Body/main-rail.cshtml' (model: 'AE.Core.ViewModels.Layouts.DynamicSublayout, AE.Core').
]
   Sitecore.Mvc.Presentation.ViewRenderer.Render(TextWriter writer) +691
   Sitecore.Mvc.Pipelines.Response.RenderRendering.ExecuteRenderer.Render(Renderer renderer, TextWriter writer, RenderRenderingArgs args) +27
   Sitecore.Mvc.Pipelines.Response.RenderRendering.ExecuteRenderer.Process(RenderRenderingArgs args) +62
   (Object , Object[] ) +83
   Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args) +306
   Sitecore.Mvc.Pipelines.PipelineService.RunPipeline(String pipelineName, TArgs args) +161
   Sitecore.Mvc.Pipelines.Response.RenderPlaceholder.PerformRendering.Render(String placeholderName, TextWriter writer, RenderPlaceholderArgs args) +177
   (Object , Object[] ) +83
   Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args) +306
   Sitecore.Mvc.Pipelines.PipelineService.RunPipeline(String pipelineName, TArgs args) +161
   Sitecore.Mvc.Helpers.SitecoreHelper.Placeholder(String placeholderName) +234
   ASP._Page_Views_AE_Core_NavigationBuilder_NavigableListTabbed_cshtml.Execute() in d:\Inetpub\wwwroot\A01686\eatright.org\www\Views\AE.Core\NavigationBuilder\NavigableListTabbed.cshtml:64
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +280
   System.Web.Mvc.WebViewPage.ExecutePageHierarchy() +136
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +119
   System.Web.Mvc.Html.PartialExtensions.Partial(HtmlHelper htmlHelper, String partialViewName, Object model, ViewDataDictionary viewData) +159
   Sitecore.Mvc.Presentation.ViewRenderer.Render(TextWriter writer) +194

[InvalidOperationException: Error while rendering view: '/Views/AE.Core/NavigationBuilder/NavigableListTabbed.cshtml' (model: 'AE.ViewModels.Navigation.TopTopics, site').
]
   Sitecore.Mvc.Presentation.ViewRenderer.Render(TextWriter writer) +691
   Sitecore.Mvc.Pipelines.Response.RenderRendering.ExecuteRenderer.Render(Renderer renderer, TextWriter writer, RenderRenderingArgs args) +27
   Sitecore.Mvc.Pipelines.Response.RenderRendering.ExecuteRenderer.Process(RenderRenderingArgs args) +62
   (Object , Object[] ) +83
   Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args) +306
   Sitecore.Mvc.Pipelines.PipelineService.RunPipeline(String pipelineName, TArgs args) +161
   Sitecore.Mvc.Pipelines.Response.RenderPlaceholder.PerformRendering.Render(String placeholderName, TextWriter writer, RenderPlaceholderArgs args) +177
   (Object , Object[] ) +83
   Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args) +306
   Sitecore.Mvc.Pipelines.PipelineService.RunPipeline(String pipelineName, TArgs args) +161
   Sitecore.Mvc.Helpers.SitecoreHelper.Placeholder(String placeholderName) +234
   ASP._Page_Views_SubLayouts_Pages_category_cshtml.Execute() in d:\Inetpub\wwwroot\A01686\eatright.org\www\Views\SubLayouts\Pages\category.cshtml:11
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +280
   System.Web.Mvc.WebViewPage.ExecutePageHierarchy() +136
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +119
   System.Web.Mvc.Html.PartialExtensions.Partial(HtmlHelper htmlHelper, String partialViewName, Object model, ViewDataDictionary viewData) +159
   Sitecore.Mvc.Presentation.ViewRenderer.Render(TextWriter writer) +194

[InvalidOperationException: Error while rendering view: '/Views/SubLayouts/Pages/category.cshtml' (model: 'AE.Models.Common.PageRendering, site').
]
   Sitecore.Mvc.Presentation.ViewRenderer.Render(TextWriter writer) +691
   Sitecore.Mvc.Pipelines.Response.RenderRendering.ExecuteRenderer.Render(Renderer renderer, TextWriter writer, RenderRenderingArgs args) +27
   Sitecore.Mvc.Pipelines.Response.RenderRendering.ExecuteRenderer.Process(RenderRenderingArgs args) +62
   (Object , Object[] ) +83
   Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args) +306
   Sitecore.Mvc.Pipelines.PipelineService.RunPipeline(String pipelineName, TArgs args) +161
   Sitecore.Mvc.Pipelines.Response.RenderPlaceholder.PerformRendering.Render(String placeholderName, TextWriter writer, RenderPlaceholderArgs args) +177
   (Object , Object[] ) +83
   Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args) +306
   Sitecore.Mvc.Pipelines.PipelineService.RunPipeline(String pipelineName, TArgs args) +161
   Sitecore.Mvc.Helpers.SitecoreHelper.Placeholder(String placeholderName) +234
   ASP._Page_Views_Layouts_Public_cshtml.Execute() in d:\Inetpub\wwwroot\A01686\eatright.org\www\Views\Layouts\Public.cshtml:66
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +280
   System.Web.Mvc.WebViewPage.ExecutePageHierarchy() +136
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +119
   System.Web.Mvc.Html.PartialExtensions.Partial(HtmlHelper htmlHelper, String partialViewName, Object model, ViewDataDictionary viewData) +159
   Sitecore.Mvc.Presentation.ViewRenderer.Render(TextWriter writer) +194

[InvalidOperationException: Error while rendering view: '/Views/Layouts/Public.cshtml' (model: 'Sitecore.Mvc.Presentation.RenderingModel, Sitecore.Mvc').
]
   Sitecore.Mvc.Presentation.ViewRenderer.Render(TextWriter writer) +691
   Sitecore.Mvc.Pipelines.Response.RenderRendering.ExecuteRenderer.Render(Renderer renderer, TextWriter writer, RenderRenderingArgs args) +27
   Sitecore.Mvc.Pipelines.Response.RenderRendering.ExecuteRenderer.Process(RenderRenderingArgs args) +62
   (Object , Object[] ) +83
   Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args) +306
   Sitecore.Mvc.Pipelines.PipelineService.RunPipeline(String pipelineName, TArgs args) +161
   Sitecore.Mvc.Presentation.RenderingView.Render(ViewContext viewContext, TextWriter writer) +302
   System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context) +380
   System.Web.Mvc.<>c__DisplayClass1a.<InvokeActionResultWithFilters>b__17() +33
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +613
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +613
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult) +263
   System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +453