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 40:                 string[] costo = m_oCorso.Note.Split(';');
Line 41: 
Line 42:                 m_strDescrizione += string.Format("Quota: <strong>{0:c}</strong> (quota soci: <strong>{1:c}</strong>):<br />", double.Parse(costo[1]), double.Parse(costo[0]));
Line 43:             }
Line 44: 

Source File: d:\inetpub\webs\AicqCi\context\centro\iscrizione\CorsoPagamento.ascx.cs    Line: 42

Stack Trace:


[IndexOutOfRangeException: Index was outside the bounds of the array.]
   context_centro_iscrizione_CorsoPagamento.Page_Load(Object sender, EventArgs e) in d:\inetpub\webs\AicqCi\context\centro\iscrizione\CorsoPagamento.ascx.cs:42
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +50
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627


Version Information: Microsoft .NET Framework Version:2.0.50727.8789; ASP.NET Version:2.0.50727.8762