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 122:
Line 123:        drpCalYear.ClearSelection()
Line 124:        drpCalYear.Items.FindByValue(Year(d)).Selected = True
Line 125:
Line 126:    End Sub

Source File: F:\InetPub\wwwroot\animalcarecentergranville.com\News\Default.aspx.vb    Line: 124

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   News_Default.Reset_CalendarDate(DateTime d) in F:\InetPub\wwwroot\animalcarecentergranville.com\News\Default.aspx.vb:124
   News_Default.DisplayPageNewsID(Int32 newsID) in F:\InetPub\wwwroot\animalcarecentergranville.com\News\Default.aspx.vb:241
   News_Default.Page_SaveStateComplete(Object sender, EventArgs e) in F:\InetPub\wwwroot\animalcarecentergranville.com\News\Default.aspx.vb:158
   System.Web.UI.Page.OnSaveStateComplete(EventArgs e) +11691131
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4108


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