Server Error in '/' Application.

Object reference not set to an instance of an object.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error:


Line 145:                <div class="col-md-12 col-sm-12 col-xs-12 text-center margin-20px-bottom sm-margin-20px-bottom xs-margin-20px-bottom">
Line 146:                    <div class="vertical-align-middle text-center">
Line 147:                        <div class="text-extra-dark-gray margin-5px-bottom alt-font text-extra-large font-weight-600 display-inline-block">@data.Subject</div>
Line 148:                        <div class="text-medium-gray text-extra-small margin-15px-bottom text-uppercase alt-font">@data.UploadDate.ToString("MM/dd/yyyy")&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;@data.StrAnnouncementType</div>
Line 149:                    </div>

Source File: C:\Websites\www.nexcaphomeloans.com\list_ann.cshtml    Line: 147

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   ASP._Page_list_ann_cshtml.Execute() in C:\Websites\www.nexcaphomeloans.com\list_ann.cshtml:147
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +251
   System.Web.WebPages.WebPage.ExecutePageHierarchy(IEnumerable`1 executors) +98
   System.Web.WebPages.WebPage.ExecutePageHierarchy() +164
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +106
   System.Web.WebPages.WebPageHttpHandler.ProcessRequestInternal(HttpContextBase httpContext) +141


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4110.0