Server Error in '/' Application.

Value cannot be null.
Parameter name: source

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.ArgumentNullException: Value cannot be null.
Parameter name: source

Source Error:


Line 43: 
Line 44:         // Собераем GradeID для поиска всех спецификаций товара для данного раздела
Line 45:         foreach (DataRow row in grades.AsEnumerable())
Line 46:         {
Line 47:             gradeId += row["GradeID"].ToString() + ",";

Source File: c:\inetpub\wwwroot\mtk-fortuna.ru\www\Controls\ListGrade\CatalogFilter.ascx.cs    Line: 45

Stack Trace:


[ArgumentNullException: Value cannot be null.
Parameter name: source]
   System.Data.DataTableExtensions.AsEnumerable(DataTable source) +37882
   Controls_ListGrade_CatalogFilter.BindFilter(Int32 sectionID) in c:\inetpub\wwwroot\mtk-fortuna.ru\www\Controls\ListGrade\CatalogFilter.ascx.cs:45
   Controls_ListGrade_GoodsList.BindGrade(List`1 idGroupList, List`1 gradeIdList) in c:\inetpub\wwwroot\mtk-fortuna.ru\www\Controls\ListGrade\GoodsList.ascx.cs:175
   ModuleCatalogSection.LoadData(Int32 id) in c:\inetpub\wwwroot\mtk-fortuna.ru\www\Modules\Catalog\ModuleCatalogSection.ascx.cs:150
   _Default.AddModules(PagesModulesDataTable modules) in c:\inetpub\wwwroot\mtk-fortuna.ru\www\Default.aspx.cs:179
   _Default.OnInit(EventArgs e) in c:\inetpub\wwwroot\mtk-fortuna.ru\www\Default.aspx.cs:44
   System.Web.UI.Control.InitRecursive(Control namingContainer) +11726355
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +491


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