Server Error in '/' Application.

Conversion from type 'DBNull' to type 'Integer' is not valid.

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.InvalidCastException: Conversion from type 'DBNull' to type 'Integer' is not valid.

Source Error:


Line 66:                 CompilaClassifica(classifica, idGirone, idGiornata, info.Rows(0)("idPunteggio"), interiL)
Line 67:             End If
Line 68:             CompilaGiornate(idGirone, idGiornata, idFormula, info.Rows(0)("giornate"))
Line 69:         Else
Line 70:             HCampionatoFaseGirone.InnerText = "Partite di oggi"

Source File: D:\inetpub\webs\savinvolleyit\Stagione1718\RisultatiCsi.aspx.vb    Line: 68

Stack Trace:


[InvalidCastException: Conversion from type 'DBNull' to type 'Integer' is not valid.]
   Microsoft.VisualBasic.CompilerServices.Conversions.ToInteger(Object Value) +1312273
   Stagione1718_RisultatiCsi.Page_Load(Object sender, EventArgs e) in D:\inetpub\webs\savinvolleyit\Stagione1718\RisultatiCsi.aspx.vb:68
   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.4690.0