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 41: SolidBrush brush = new SolidBrush(Color.FromArgb(110,250,0,0));
Line 42:
Line 43: for (int i=0; i<dtOutages.Rows.Count; i++)
Line 44: {
Line 45: string [] coordsArray = dtOutages.Rows[i]["Coords"].ToString().Split(",".ToCharArray());
[NullReferenceException: Object reference not set to an instance of an object.]
ASP.countiesmap_aspx.DrawMap() in F:\Content\Prod\www\Client_websites\GLenergy.com\www.glenergy.com\wwwroot\countiesmap.aspx:43
ASP.countiesmap_aspx.Page_Load(Object sender, EventArgs e) in F:\Content\Prod\www\Client_websites\GLenergy.com\www.glenergy.com\wwwroot\countiesmap.aspx:23
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +750
Version Information: Microsoft .NET Framework Version:1.1.4322.2407; ASP.NET Version:1.1.4322.2407