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 50:         litIFrame.Text &= "</div>"
Line 51: 
Line 52:         Dim dblLat As Double = Convert.ToDouble(Replace(strLat, ".", ","))
Line 53:         Dim dblLong As Double = Convert.ToDouble(Replace(strLong, ".", ","))
Line 54: 

Source File: D:\home\comune.ripaltaguerina.cr.it\httpdocs\procedures\street-map-detail.aspx.vb    Line: 52

Stack Trace:


[FormatException: Input string was not in a correct format.]
   System.Number.ParseDouble(String value, NumberStyles options, NumberFormatInfo numfmt) +13043247
   System.Convert.ToDouble(String value) +53
   procedures_map.InitMap(String strLat, String strLong, String strIubendaCookieManagement) in D:\home\comune.ripaltaguerina.cr.it\httpdocs\procedures\street-map-detail.aspx.vb:52
   procedures_map.Page_load(Object bj, EventArgs e) in D:\home\comune.ripaltaguerina.cr.it\httpdocs\procedures\street-map-detail.aspx.vb:40
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +52
   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.4700.0