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 12: 	}
Line 13: }
Line 14: 	<div class="js-lazyYT" data-youtube-id="@Model.VideoYoutubeId" data-parameters="rel=0" onclick="FLOODCLICK('NewNH0', 'Landi001', '');" target="_blank"></div>	
Line 15: @*
Line 16: <div class="testimonial-one-col component-partial video-component" data-content-type="@Model.Item["Video Content Type"]" data-site-sections="@Model.Item["Site Sections"]">

Source File: e:\inetpub\wwwroot\NorthHighland\Website\Areas\NH\Views\Shared\content\Animated Page\_AnimatedPageSectionVideo.cshtml    Line: 14

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   NH.Web.Areas.NH.Models.Content.Video.get_VideoUrlExists() in c:\nick\north-highland-website\NH.Web\Areas\NH\Models\Content\Video.cs:76
   NH.Web.Areas.NH.Models.Content.Video.get_VideoYoutubeId() in c:\nick\north-highland-website\NH.Web\Areas\NH\Models\Content\Video.cs:87
   ASP._Page_Areas_NH_Views_Shared_Content_Animated_Page__AnimatedPageSectionVideo_cshtml.Execute() in e:\inetpub\wwwroot\NorthHighland\Website\Areas\NH\Views\Shared\content\Animated Page\_AnimatedPageSectionVideo.cshtml:14
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +251
   System.Web.Mvc.WebViewPage.ExecutePageHierarchy() +127
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +118
   System.Web.Mvc.Html.PartialExtensions.Partial(HtmlHelper htmlHelper, String partialViewName, Object model, ViewDataDictionary viewData) +143
   Sitecore.Mvc.Presentation.ViewRenderer.Render(TextWriter writer) +174

[InvalidOperationException: Error while rendering view: '/Areas/NH/Views/Shared/Content/Animated Page/_AnimatedPageSectionVideo.cshtml' (model: 'NH.Web.Areas.NH.Models.Content.Video, NH.Web').
]
   Sitecore.Mvc.Presentation.ViewRenderer.Render(TextWriter writer) +647
   Sitecore.Mvc.Pipelines.Response.RenderRendering.ExecuteRenderer.Render(Renderer renderer, TextWriter writer, RenderRenderingArgs args) +30
   Sitecore.Mvc.Pipelines.Response.RenderRendering.ExecuteRenderer.Process(RenderRenderingArgs args) +73
   (Object , Object[] ) +74
   Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args) +324
   Sitecore.Mvc.Pipelines.PipelineService.RunPipeline(String pipelineName, TArgs args) +164
   Sitecore.Mvc.Pipelines.Response.RenderPlaceholder.PerformRendering.Render(String placeholderName, TextWriter writer, RenderPlaceholderArgs args) +215
   (Object , Object[] ) +74
   Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args) +324
   Sitecore.Mvc.Pipelines.PipelineService.RunPipeline(String pipelineName, TArgs args) +164
   Sitecore.Mvc.Helpers.SitecoreHelper.Placeholder(String placeholderName) +240
   Score.Data.Extensions.MvcExtensions.SitecoreHelper.DynamicPlaceholder(SitecoreHelper helper, String dynamicKey) +213
   ASP._Page_Areas_NH_Views_Shared_Content_Animated_Page__AnimatedPageSection_cshtml.Execute() in e:\inetpub\wwwroot\NorthHighland\Website\Areas\NH\Views\Shared\content\Animated Page\_AnimatedPageSection.cshtml:33
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +252
   System.Web.Mvc.WebViewPage.ExecutePageHierarchy() +128
   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) +144
   Sitecore.Mvc.Presentation.ViewRenderer.Render(TextWriter writer) +175

[InvalidOperationException: Error while rendering view: '/Areas/NH/Views/Shared/Content/Animated Page/_AnimatedPageSection.cshtml' (model: 'Sitecore.Mvc.Presentation.RenderingModel, Sitecore.Mvc').
]
   Sitecore.Mvc.Presentation.ViewRenderer.Render(TextWriter writer) +647
   Sitecore.Mvc.Pipelines.Response.RenderRendering.ExecuteRenderer.Render(Renderer renderer, TextWriter writer, RenderRenderingArgs args) +30
   Sitecore.Mvc.Pipelines.Response.RenderRendering.ExecuteRenderer.Process(RenderRenderingArgs args) +73
   (Object , Object[] ) +74
   Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args) +324
   Sitecore.Mvc.Pipelines.PipelineService.RunPipeline(String pipelineName, TArgs args) +164
   Sitecore.Mvc.Pipelines.Response.RenderPlaceholder.PerformRendering.Render(String placeholderName, TextWriter writer, RenderPlaceholderArgs args) +215
   (Object , Object[] ) +74
   Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args) +324
   Sitecore.Mvc.Pipelines.PipelineService.RunPipeline(String pipelineName, TArgs args) +164
   Sitecore.Mvc.Helpers.SitecoreHelper.Placeholder(String placeholderName) +240
   ASP._Page_Areas_NH_Views_Layouts_Animated_cshtml.Execute() in e:\inetpub\wwwroot\NorthHighland\Website\Areas\NH\Views\Layouts\Animated.cshtml:52
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +252
   System.Web.Mvc.WebViewPage.ExecutePageHierarchy() +128
   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) +144
   Sitecore.Mvc.Presentation.ViewRenderer.Render(TextWriter writer) +175

[InvalidOperationException: Error while rendering view: '/Areas/NH/Views/Layouts/Animated.cshtml' (model: 'Score.Data.ViewModels.Base.ContentPage, Score.Data').
]
   Sitecore.Mvc.Presentation.ViewRenderer.Render(TextWriter writer) +647
   Sitecore.Mvc.Pipelines.Response.RenderRendering.ExecuteRenderer.Render(Renderer renderer, TextWriter writer, RenderRenderingArgs args) +30
   Sitecore.Mvc.Pipelines.Response.RenderRendering.ExecuteRenderer.Process(RenderRenderingArgs args) +73
   (Object , Object[] ) +74
   Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args) +324
   Sitecore.Mvc.Pipelines.PipelineService.RunPipeline(String pipelineName, TArgs args) +164
   Sitecore.Mvc.Presentation.RenderingView.Render(ViewContext viewContext, TextWriter writer) +301
   System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context) +357
   System.Web.Mvc.<>c__DisplayClass1c.<InvokeActionResultWithFilters>b__19() +31
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +415
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +415
   System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +390