Server Error in '/' Application.

Length cannot be less than zero.
Parameter name: length

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.ArgumentOutOfRangeException: Length cannot be less than zero.
Parameter name: length

Source Error:


Line 532:
Line 533:
Line 534:        scriptadd.Text= "<script>var proden=["+ nn + "]; var remarketingdinamico='" + remarketingdinamico.Substring(0, remarketingdinamico.Length - 1) + "';var totmerce=" + totale + ";;var pippo=1;</script>";
Line 535:        return carrello;
Line 536:        #endregion

Source File: c:\WEBFARM_MILITARIA\localuser\ftpcapellomio\cart.aspx.cs    Line: 534

Stack Trace:


[ArgumentOutOfRangeException: Length cannot be less than zero.
Parameter name: length]
   System.String.Substring(Int32 startIndex, Int32 length) +14599229
   cart.get_carrello() in c:\WEBFARM_MILITARIA\localuser\ftpcapellomio\cart.aspx.cs:534
   cart.Page_Load(Object sender, EventArgs e) in c:\WEBFARM_MILITARIA\localuser\ftpcapellomio\cart.aspx.cs:29
   System.Web.UI.Control.OnLoad(EventArgs e) +108
   System.Web.UI.Control.LoadRecursive() +90
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1533


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