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() +279
   System.Web.Mvc.WebViewPage.ExecutePageHierarchy() +124
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +195
   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