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 58:         Dim stDc As New dcStoresDataContext
Line 59:         Dim ci As ShopItem = (From ai In stDc.ShopItems).SingleOrDefault(Function(x) x.ID = ItemID)
Line 60:         ci.ReadCounts = ci.ReadCounts + 1
Line 61:         If ci IsNot Nothing Then
Line 62:             'Dim limv As UserControls_Electronics_Most_Visited = CType(Master.FindControl("liMostVisited"), UserControls_Electronics_Most_Visited)

Source File: F:\WEBSITES\V2WEB\rkinter3ati\rk-international.net\www\Show-Deal-Details.aspx.vb    Line: 60

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   Show_Deal_Details.LoadItemInfoXID(Int64 ItemID) in F:\WEBSITES\V2WEB\rkinter3ati\rk-international.net\www\Show-Deal-Details.aspx.vb:60
   Show_Deal_Details.Page_Load(Object sender, EventArgs e) in F:\WEBSITES\V2WEB\rkinter3ati\rk-international.net\www\Show-Deal-Details.aspx.vb:41
   System.Web.UI.Control.OnLoad(EventArgs e) +107
   System.Web.UI.Control.LoadRecursive() +89
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1532


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