Error When Sending Email System.IndexOutOfRangeException: There is no row at position 0.

Discussion in 'ASP.NET Starter Kits' started by ramelllamar, Aug 9, 2008.

  1. I'm currently using the club starter kit, and I'm having trouble sending an email to the members. Whenever I try to send an email I get the error message below. It appears to be trying to pull data from the Member_Info table and bombing when it tries to actually pulls the data. This is kinda mind boggling, because the table is populated, so I'm not sure why it's bombing. Please Advise


    Server Error in '/' Application.
    There is no row at position 0.
    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: There is no row at position 0.

    Source Error:

    Line 416: Public Default ReadOnly Property Item(ByVal index As Integer) As MemberInfoRow
    Line 417: Get
    Line 418: Return CType(Me.Rows(index),MemberInfoRow)
    Line 419: End Get
    Line 420: End Property


    Source File: C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\38643b38\a134ec97\App_Code.q6y-0ej9.1.vb Line: 418

    Stack Trace:

    [IndexOutOfRangeException: There is no row at position 0.]
    System.Data.RBTree`1.GetNodeByIndex(Int32 userIndex) +1943315
    System.Data.RBTree`1.get_Item(Int32 index) +17
    System.Data.DataRowCollection.get_Item(Int32 index) +11
    MemberInfoDataTable.get_Item(Int32 index) in C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\38643b38\a134ec97\App_Code.q6y-0ej9.1.vb:418
    Admin_Email.GetRecipients() in E:\web\greatermtol\htdocs\admin\Email.aspx.vb:170
    Admin_Email.btnSend_Click(Object sender, EventArgs e) in E:\web\greatermtol\htdocs\admin\Email.aspx.vb:50
    System.Web.UI.WebControls.Button.OnClick(EventArgs e) +105
    System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +107
    System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
    System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
    System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1746


    Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433
     

Share This Page