Server Error in '/' Application.

Value cannot be null.
Parameter name: row

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: row

Source Error:


Line 84:                     Dim SitemapTable As DataTable = Utility.getDataTableByQuery("SELECT CHILD.sitemap_catID AS Id, CHILD.nome AS Titolo FROM sitemap AS BOSS INNER JOIN sitemap AS CHILD ON BOSS.sitemap_catID=CHILD.catID_padre WHERE BOSS.sitemap_catId=@IdSitemap", New SqlParameter() {New SqlParameter("@IdSitemap", _SitemapId.Value)})
Line 85:                     Dim SitemapRow As DataRow = (From column In SitemapTable.Rows Where Utility.getSlug(column("Titolo")) = Request.QueryString("type")).FirstOrDefault()
Line 86:                     Dim idsitemap As Integer = Convert.ToInt32(SitemapRow.Field(Of Integer)("id"))
Line 87:                     _SitemapPanel.Visible = True
Line 88:                     LoadSitempap(IdPost, idsitemap, False)

Source File: D:\inetpub\wwwroot\eurocto.eu\eventdetails.aspx.vb    Line: 86

Stack Trace:


[ArgumentNullException: Value cannot be null.
Parameter name: row]
   System.Data.DataRowExtensions.Field(DataRow row, String columnName) +98
   eventdetails.ShowPanels() in D:\inetpub\wwwroot\eurocto.eu\eventdetails.aspx.vb:86
   eventdetails.Page_PreRender(Object sender, EventArgs e) in D:\inetpub\wwwroot\eurocto.eu\eventdetails.aspx.vb:44
   System.EventHandler.Invoke(Object sender, EventArgs e) +0
   System.Web.UI.Control.OnPreRender(EventArgs e) +9882874
   System.Web.UI.Control.PreRenderRecursiveInternal() +90
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +906


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