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 76: 		params.Add("@lang", lang)
Line 77: 		Dim newsRow As DataTable = IrvinDatabase.ExecuteQueryAsDataTable(query, params.ToArray())
Line 78: 		Dim titolo As String = newsRow(0).Field(Of String)("Titolo")
Line 79:         If (newsRow.Rows.Count = 0) Then
Line 80:             Response.Redirect(IrvinRewrite.Rewrite("azienda.aspx", "oranfrizer"))

Source File: C:\inetpub\wwwroot\oranfrizer.it\percorso_natura.aspx.vb    Line: 78

Stack Trace:


[ArgumentNullException: Value cannot be null.
Parameter name: row]
   System.Data.DataRowExtensions.Field(DataRow row, String columnName) +18332
   percorso_natura.LoadItem(Int32 id, String lang) in C:\inetpub\wwwroot\oranfrizer.it\percorso_natura.aspx.vb:78
   percorso_natura.Page_Load(Object sender, EventArgs e) in C:\inetpub\wwwroot\oranfrizer.it\percorso_natura.aspx.vb:19
   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