0 0
Object reference not set to an instance of an object.

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 1104:                            <div class="mag-image-h">
Line 1105:                                @if (!string.IsNullOrEmpty(@item.Image.Src))
Line 1106:                                {
Line 1107:                                    <img class="imgfullwidth" itemprop="image" src="@Html.GenerateRenditionURL(@item.Image.Value, "picture_client_format_9")" @Html.GetImageAttributes(@item.Image.Alt, @item.Image.Title) />
Line 1108:                                }

Source File: e:\approot\Views\Magazine\PortraitDetails.cshtml    Line: 1106

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   Loreal.Core.Extensions.HtmlHelperExtensions.GenerateRenditionURL(HtmlHelper helper, String MediaId, String RenditionType) +771
   ASP._Page_Views_Magazine_PortraitDetails_cshtml.Execute() in e:\approot\Views\Magazine\PortraitDetails.cshtml:1106
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +279
   System.Web.Mvc.WebViewPage.ExecutePageHierarchy() +124
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +180
   System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context) +379
   System.Web.Mvc.<>c__DisplayClass1a.<InvokeActionResultWithFilters>b__17() +32
   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) +426