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 31:                     @Model.EventPage.Address.Address2<br/>
Line 32:                 }
Line 33:                 <span itemprop="addressLocality">@Model.EventPage.Address.City</span>, <span itemprop="addressRegion">@Model.EventPage.Address.Province.Title</span>  <span itemprop="postalCode">@Model.EventPage.Address.PostalCode</span>
Line 34:             </p>
Line 35:         </div>

Source File: e:\WebRoot\conseillers.fbngp.ca_v2\Views\MicrositeEvent\MicrositeEventDetails.cshtml    Line: 33

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   ASP._Page_Views_MicrositeEvent_MicrositeEventDetails_cshtml.Execute() in e:\WebRoot\conseillers.fbngp.ca_v2\Views\MicrositeEvent\MicrositeEventDetails.cshtml:33
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +251
   System.Web.Mvc.WebViewPage.ExecutePageHierarchy() +146
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +121
   System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context) +374
   System.Web.Mvc.<>c__DisplayClass1a.<InvokeActionResultWithFilters>b__17() +30
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +436
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +436
   System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +399