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 640:        Function GetPaggedData(ByVal curindex As Integer, ByVal pageindex As Integer, ByVal dt As DataTable)
Line 641:            Dim dtpagged As New DataTable
Line 642:            dtpagged = dt.Clone
Line 643:            Dim initial As Integer = CInt(curindex) '(CInt(intCurrIndex.Value) - 1) * CInt(intPageSize.Value) + 1
Line 644:            Dim last As Integer = initial + CInt(pageindex) - 1

Source File: C:\inetpub\wwwroot\A2ZMS_2\App_Code\CommonFunctionsLSV2.vb    Line: 642

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   ClassCommonFuncLSV2.CommonFunctionsLSV2.GetPaggedData(Int32 curindex, Int32 pageindex, DataTable dt) in C:\inetpub\wwwroot\A2ZMS_2\App_Code\CommonFunctionsLSV2.vb:642
   LinksListings.AllDancing() in C:\inetpub\wwwroot\A2ZMS_2\LinksListings.aspx.vb:208
   LinksListings.getquerystring() in C:\inetpub\wwwroot\A2ZMS_2\LinksListings.aspx.vb:114
   LinksListings.Page_Load(Object sender, EventArgs e) in C:\inetpub\wwwroot\A2ZMS_2\LinksListings.aspx.vb:18
   System.Web.UI.Control.OnLoad(EventArgs e) +107
   System.Web.UI.Control.LoadRecursive() +89
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1606


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