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 453:                                        'Alberto modifica
Line 454:
Line 455:                                        Dim BrandID As Integer = Integer.Parse(_arrayUrl(_arrayUrl.Length - 2))
Line 456:                                        'Dim BrandNome As String = _arrayUrl(_arrayUrl.Length - 2)
Line 457:                                        'Dim BrandID As Integer = Ecommerce.BUSINESS.GetAppMarca(0,, BrandNome).MarcaID

Source File: C:\inetpub\wwwroot\ScarpaOro\global.asax    Line: 455

Stack Trace:


[FormatException: Input string was not in a correct format.]
   System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) +13033687
   System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) +122
   System.Int32.Parse(String s) +26
   ASP.global_asax.Application_BeginRequest(Object sender, EventArgs e) in C:\inetpub\wwwroot\ScarpaOro\global.asax:455
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +144
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +50
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +73


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