Server Error in '/' Application.

Index was outside the bounds of the array.

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.IndexOutOfRangeException: Index was outside the bounds of the array.

Source Error:


Line 43:                 Dim wordsWorking As String() = wordsBefore.Split(New Char() {","c}, 2)
Line 44: 
Line 45:                 Dim wordsAfter As String = String.Format("{0} {1} ", wordsWorking(1), wordsWorking(0))
Line 46: 
Line 47:                 mClass.m_Name = wordsAfter

Source File: h:\root\home\citwf70-001\www\citwfgreenstyle\persons_detailes_page.aspx.vb    Line: 45

Stack Trace:


[IndexOutOfRangeException: Index was outside the bounds of the array.]
   persons_detailes_page.Page_Load(Object sender, EventArgs e) in h:\root\home\citwf70-001\www\citwfgreenstyle\persons_detailes_page.aspx.vb:45
   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.4700.0