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 111:            htmarker.Add(New marker(latitudine, longitudine, markertext))
Line 112:            Dim altrestr As ArrayList = Struttura.GetStrutture(dstru.localita).strutture
Line 113:            For Each s As Struttura In altrestr
Line 114:                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 + ">BBNapoli.it</a></font></div>"
Line 115:

Source File: e:\docs\web\bbnapoli\Controls\Mappa\ctlMappa.ascx.vb    Line: 113

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\bbnapoli\Controls\Mappa\ctlMappa.ascx.vb:113
   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