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 42:                         <div class="row">
Line 43:                             <div class="col-sm-12 col-lg-8">
Line 44:                                 <h1 class="pxp-page-header float-left">@brokerageagents.fname @brokerageagents.lname</h1>
Line 45: 
Line 46:                                 <div class="clearfix"></div>

Source File: c:\home\site\wwwroot\agent.cshtml    Line: 44

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   ASP._Page_agent_cshtml.Execute() in c:\home\site\wwwroot\agent.cshtml:44
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +198
   System.Web.WebPages.WebPage.ExecutePageHierarchy(IEnumerable`1 executors) +69
   System.Web.WebPages.WebPage.ExecutePageHierarchy() +114
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +78
   System.Web.WebPages.WebPageHttpHandler.ProcessRequestInternal(HttpContextBase httpContext) +116


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