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 117:            htmarker.Add(New marker(latitudine, longitudine, markertext))
Line 118:            Dim altrestr As ArrayList = Struttura.GetStrutture(dstru.localita).strutture
Line 119:            For Each s As Struttura In altrestr
Line 120:                markertext = "<div style=""margin-top:8px;""><font face=verdana size=2><a href=dettaglio.aspx?id=" + s.IDStruttura + "><img border=1 width=100 height=80 align=left src=http://www.bbplanet.it/public/img/paginestrutture/" + s.IDStruttura + "/icone/" + s.IDStruttura + "-1.JPG ></a><div style=""margin-left:8px;""><font size=2><b>&nbsp;" + s.nomestruttura + "</font><br><font size=1>&nbsp;" + s.tipologiaestesa + "</font></b></font><br>&nbsp;" + s.localita + "<br>&nbsp;<a href=dettaglio.aspx?id=" + s.IDStruttura + ">SubitoCasa.com</a></font></div>"
Line 121:

Source File: e:\docs\web\subitocasa\Controls\Mappa\ctlMappa.ascx.vb    Line: 119

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   Controls_Mappa_ctlMappa.Page_Load(Object sender, EventArgs e) in e:\docs\web\subitocasa\Controls\Mappa\ctlMappa.ascx.vb:119
   System.EventHandler.Invoke(Object sender, EventArgs e) +0
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +50
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627


Version Information: Microsoft .NET Framework Version:2.0.50727.8974; ASP.NET Version:2.0.50727.8975