Jeg har litt problemer med mitt regnska på Betwatcher.
Jeg får opp denne meldingen under;
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.ArgumentOutOfRangeExcep…: Index and length must refer to a location within the string. Parameter name: length
Hei,
Jeg har litt problemer med mitt regnska på Betwatcher.
Jeg får opp denne meldingen under;
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.ArgumentOutOfRangeExcep…: Index and length must refer to a location within the string.
Parameter name: length
Source Error:
Line 6400: OdbcDataReader getmonthRead = getMonthComm.ExecuteReader();
Line 6401: getmonthRead.Read();
Line 6402: string date = getmonthRead[0].ToString().Substring(0, 10);
Line 6403: int day = int.Parse(date.Substring(0, 2));
Line 6404: int month = int.Parse(date.Substring(3, 2));
Source File: d:\web\localuser\betwatcher.com\public_html\updatepick.aspx.cs Line: 6402
Stack Trace:
[ArgumentOutOfRangeException: Index and length must refer to a location within the string.
Parameter name: length]
System.String.InternalSubStrin…(Int32 startIndex, Int32 length, Boolean fAlwaysCopy) +10929375
System.String.Substring(Int32 startIndex, Int32 length) +10
updatepick.FillAllDrop(String user) in d:\web\localuser\betwatcher.com\public_html\updatepick.aspx.cs:6402
updatepick.Page_Load(Object sender, EventArgs e) in d:\web\localuser\betwatcher.com\public_html\updatepick.aspx.cs:127
System.Web.Util.CalliEventHand…(Object sender, EventArgs e) +51
System.Web.UI.Control.OnLoad(EventArgs e) +92
System.Web.UI.Control.LoadRecu…() +54
System.Web.UI.Page.ProcessRequ…(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +772
Er det noe man kan få gjort her?