Server Error in '/' Application.

The source contains no DataRows.

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.InvalidOperationException: The source contains no DataRows.

Source Error:


Line 1911:            if (_dtUpdate.Rows.Count > 0)
Line 1912:            {
Line 1913:                list = _dtUpdate.AsEnumerable().Skip(pages).Take(25).CopyToDataTable();
Line 1914:            }
Line 1915:

Source File: c:\inetpub\wwwroot\pcbdirectory.com\App_Code\FrontEnd.cs    Line: 1913

Stack Trace:


[InvalidOperationException: The source contains no DataRows.]
   System.Data.DataTableExtensions.LoadTableFromEnumerable(IEnumerable`1 source, DataTable table, Nullable`1 options, FillErrorEventHandler errorHandler) +1211
   System.Data.DataTableExtensions.CopyToDataTable(IEnumerable`1 source) +67
   PCB.FrontEnd.GetAllManufacturerCache(String oCountry, String oState, String oCity, String specValue, String oOrderBy, String oSortOrder, Int32 topLimit, Int32 pages, Int32& TotalCount, String type, String manufacture_supply, String t_sort_order, String f_sort_order, String t_type, DataSet ds, Int32 isFiltercountry, DataTable& dtManuSpec) in c:\inetpub\wwwroot\pcbdirectory.com\App_Code\FrontEnd.cs:1913
   directory_directory.GetAllManufacturesCache() in c:\inetpub\wwwroot\pcbdirectory.com\directory\directory.aspx.cs:1557
   directory_directory.Page_Load(Object sender, EventArgs e) in c:\inetpub\wwwroot\pcbdirectory.com\directory\directory.aspx.cs:354
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +52
   System.Web.UI.Control.OnLoad(EventArgs e) +97
   System.Web.UI.Control.LoadRecursive() +61
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +693


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