Server Error in '/' Application.

Argument 'Start' must be greater than zero.

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.ArgumentException: Argument 'Start' must be greater than zero.

Source Error:


Line 1425:
Line 1426:        For t = 0 To 10
Line 1427:            s1 &= Mid(baseTXT, count, 1)
Line 1428:
Line 1429:            count += jumpRange

Source File: D:\sites\shoresh\App_Code\mainfunc.vb    Line: 1427

Stack Trace:


[ArgumentException: Argument 'Start' must be greater than zero.]
   Microsoft.VisualBasic.Strings.Mid(String str, Int32 Start, Int32 Length) +441510
   mainfunc.getCorectNameFromRandom(String theRandomTXT) in D:\sites\shoresh\App_Code\mainfunc.vb:1427
   email.Page_Load(Object sender, EventArgs e) in D:\sites\shoresh\email.aspx.vb:38
   System.EventHandler.Invoke(Object sender, EventArgs e) +0
   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.4110.0