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 125:
Line 126:        Dim oPaginaImmagineSliderLingua As PaginaImmagineSliderLingua = oList.FirstOrDefault
Line 127:        header_slider.Attributes.Add("data-background", _pathInizialeSlider & oPaginaImmagineSliderLingua.ImmagineID & oPaginaImmagineSliderLingua.PaginaImmagineSlider.EstensioneFile)
Line 128:
Line 129:        Literal_titolo_h1.Text = oPaginaImmagineSliderLingua.Titolo

Source File: C:\inetpub\wwwroot\HotelPalace2024\UserControls\2018\Slider.ascx.vb    Line: 127

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   UserControls_Slider.Repeater_slider_databind() in C:\inetpub\wwwroot\HotelPalace2024\UserControls\2018\Slider.ascx.vb:127
   UserControls_Slider.Page_Load(Object sender, EventArgs e) in C:\inetpub\wwwroot\HotelPalace2024\UserControls\2018\Slider.ascx.vb:195
   System.Web.UI.Control.OnPreRender(EventArgs e) +9884298
   System.Web.UI.Control.PreRenderRecursiveInternal() +90
   System.Web.UI.Control.PreRenderRecursiveInternal() +163
   System.Web.UI.Control.PreRenderRecursiveInternal() +163
   System.Web.UI.Control.PreRenderRecursiveInternal() +163
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +906


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