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 200:                    schemaJSONLD.Text = String.Format(schemaarticle, Ragalahari.Data.Utilities.CleanSchemaText(interview.InterviewTitle), Ragalahari.Data.Utilities.CleanSchemaText(interview.InterviewIntro), interview.InterviewIntroImg.Replace("http:", "https:").Replace("raagalahari.com", "ragalahari.com"), Ragalahari.Data.Utilities.SchemaFormatDate(interview.InterviewAdded), Ragalahari.Data.Utilities.SchemaFormatDate(interview.InterviewUpdated), Request.RawUrl);
Line 201:                }
Line 202:                schemaJSONLD.Text = schemaJSONLD.Text+ String.Format(schemabreadcrumb, starname.Substring(0, 1).ToLower(), Ragalahari.Data.Utilities.CleanSchemaText(interview.InterviewTitle), interview.InterviewId, Ragalahari.Data.Utilities.EncodeUrl(interview.Permalink));
Line 203:                if (!Request.ServerVariables["SERVER_NAME"].StartsWith("www.", StringComparison.InvariantCultureIgnoreCase))
Line 204:                    breadcrumbsbtm.Text = String.Format(breadcrumb, starname.Substring(0, 1).ToLower(), Ragalahari.Data.Utilities.CleanQuotes(interview.InterviewTitle));

Source File: c:\home\site\wwwroot\interview.aspx.cs    Line: 202

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
   interview.Page_Load(Object sender, EventArgs e) in c:\home\site\wwwroot\interview.aspx.cs:202
   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.4494.0