Server Error in '/' Application.

Index and length must refer to a location within the string.
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: Index and length must refer to a location within the string.
Parameter name: length

Source Error:


Line 41: 				html &= "<div Class='w3-post-text'>"
Line 42: 				html &= "<p>"
Line 43: 				html &= getContent.Substring(0, 65) & " [...]"
Line 44: 				html &= "</p>"
Line 45: 				html &= "</div>"

Source File: F:\RunDetective.com\bloglist.aspx.vb    Line: 43

Stack Trace:


[ArgumentOutOfRangeException: Index and length must refer to a location within the string.
Parameter name: length]
   System.String.Substring(Int32 startIndex, Int32 length) +12953527
   bloglist.loadnews() in F:\RunDetective.com\bloglist.aspx.vb:43
   bloglist.Default_Load(Object sender, EventArgs e) in F:\RunDetective.com\bloglist.aspx.vb:9
   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.4494.0