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 109:                               int i = 0;
Line 110:                               var comp_tel = company.telephone.Split(',');
Line 111:                               var comp_fax = company.fax.Split(',');
Line 112:                        %>
Line 113:                        <div class="seperate">

Source File: d:\HTTP\nascoinsurancegroup\nascoinsurancegroup.com\wwwroot\Views\Companies\Detail.aspx    Line: 111

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   ASP.views_companies_detail_aspx.__RenderContent2(HtmlTextWriter __w, Control parameterContainer) in d:\HTTP\nascoinsurancegroup\nascoinsurancegroup.com\wwwroot\Views\Companies\Detail.aspx:111
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +275
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +79
   ASP.views_shared_sitesub_master.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in d:\HTTP\nascoinsurancegroup\nascoinsurancegroup.com\wwwroot\Views\Shared\SiteSub.Master:104
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +275
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +79
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +168
   System.Web.Mvc.ViewPage.Render(HtmlTextWriter writer) +74
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +79
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4238


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