Server Error in '/' Application.

Input string was not in a correct format.

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.FormatException: Input string was not in a correct format.

Source Error:


Line 119:    Protected Sub Page_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Init
Line 120:        Context.Items("menu_id") = 5
Line 121:        If Request("m") <> 0 Then
Line 122:            Me.hdn_tipo_ricerca.Value = Request("m")
Line 123:        End If

Source File: C:\TRIBUNALI\Catania\controlli_gestione\MascheraRicerca.ascx.vb    Line: 121

Stack Trace:


[FormatException: Input string was not in a correct format.]
   Microsoft.VisualBasic.CompilerServices.Conversions.ParseDouble(String Value, NumberFormatInfo NumberFormat) +308
   Microsoft.VisualBasic.CompilerServices.Conversions.ToDouble(String Value, NumberFormatInfo NumberFormat) +84

[InvalidCastException: Conversion from string "" to type 'Double' is not valid.]
   Microsoft.VisualBasic.CompilerServices.Conversions.ToDouble(String Value, NumberFormatInfo NumberFormat) +256
   Astegiudiziarie_NuoviControlliAste_MascheraRicerca.Page_Init(Object sender, EventArgs e) in C:\TRIBUNALI\Catania\controlli_gestione\MascheraRicerca.ascx.vb:121
   System.Web.UI.Control.OnInit(EventArgs e) +108
   System.Web.UI.Control.InitRecursive(Control namingContainer) +173
   System.Web.UI.Control.InitRecursive(Control namingContainer) +380
   System.Web.UI.Control.InitRecursive(Control namingContainer) +380
   System.Web.UI.Control.InitRecursive(Control namingContainer) +380
   System.Web.UI.Control.InitRecursive(Control namingContainer) +380
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +491


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