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 9:      <ul class="links">
Line 10:         <li><a href="@Model.FbnGpUrl">@Html.Translate(Constants.ResourceSets.MicrositeGeneral, "FBNGP")</a></li>
Line 11:         <li@(Model.Languages.Id.ToString() != Constants.Items.Extranet.LanguagesListFrenchEnglish.ToString() && !(Model.OtherLanguagePage != null && Model.OtherLanguagePage.PageEnabled) ? " class=last" : string.Empty)>
Line 12:             <a href="@Model.ContactUsUrl">
Line 13:                 @Html.Translate(Constants.ResourceSets.MicrositeGeneral, "ContactUs")

Source File: e:\WebRoot\conseillers.fbngp.ca_v2\Views\MicrositeShared\MicrositeTopHeader.cshtml    Line: 11

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   ASP._Page_Views_MicrositeShared_MicrositeTopHeader_cshtml.Execute() in e:\WebRoot\conseillers.fbngp.ca_v2\Views\MicrositeShared\MicrositeTopHeader.cshtml:11
   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

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 30:             <aside class="bloc-lowerpage">
Line 31:                 <h4>@Html.Translate(Constants.ResourceSets.MicrositeGeneral, "Branch")</h4>
Line 32:                 <p>@Model.ContactModel.AddressSubTitle</p>
Line 33:                 <p>
Line 34:                     @Model.Branch.Address.Address<br/>

Source File: e:\WebRoot\conseillers.fbngp.ca_v2\Views\MicrositeShared\MicrositeFooter.cshtml    Line: 32

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   ASP._Page_Views_MicrositeShared_MicrositeFooter_cshtml.Execute() in e:\WebRoot\conseillers.fbngp.ca_v2\Views\MicrositeShared\MicrositeFooter.cshtml:32
   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