dcsimg
www.webdeveloper.com
Results 1 to 2 of 2

Thread: Exception Details: System.IndexOutOfRangeException: There is no row at position 0.

  1. #1
    Join Date
    Oct 2012
    Posts
    1

    Exception Details: System.IndexOutOfRangeException: There is no row at position 0.

    Hi, I'm having trouble with my website. Any Ideas?

    Source Error

    Line 99: Dim dt As DataTable
    Line 100: dt = oContent.GetPage(nPageId, True)
    Line 101: Dim sTitle As String = dt.Rows(0).Item("title").ToString
    Line 102: oContent = Nothing
    Line 103: Return sTitle

    Stack Trace

    [IndexOutOfRangeException: There is no row at position 0.]
    System.Data.RBTree`1.GetNodeByIndex(Int32 userIndex) +1672170
    System.Data.DataRowCollection.get_Item(Int32 index) +21
    ASP.systems_custom_listing_ascx.ShowEntryTitle(Int32 nPageId) in C:\HostingSpaces\promptho\coastlands.org.au\wwwroot\systems\custom_listing.ascx:101
    ASP.systems_custom_listing_ascx.__DataBind__control19(Object sender, EventArgs e) in C:\HostingSpaces\promptho\coastlands.org.au\wwwroot\systems\custom_listing.ascx:514
    System.Web.UI.Control.OnDataBinding(EventArgs e) +91
    System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +92
    System.Web.UI.Control.DataBind() +15
    System.Web.UI.Control.DataBindChildren() +201
    System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +101
    System.Web.UI.Control.DataBind() +15
    System.Web.UI.Control.DataBindChildren() +201
    System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +101
    System.Web.UI.Control.DataBind() +15
    System.Web.UI.WebControls.GridView.CreateRow(Int32 rowIndex, Int32 dataSourceIndex, DataControlRowType rowType, DataControlRowState rowState, Boolean dataBind, Object dataItem, DataControlField[] fields, TableRowCollection rows, PagedDataSource pagedDataSource) +166
    System.Web.UI.WebControls.GridView.CreateChildControls(IEnumerable dataSource, Boolean dataBinding) +3896
    System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data) +66
    System.Web.UI.WebControls.GridView.PerformDataBinding(IEnumerable data) +14
    System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data) +128
    System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +33
    System.Web.UI.WebControls.DataBoundControl.PerformSelect() +143
    System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +74
    System.Web.UI.WebControls.GridView.DataBind() +4
    ASP.systems_custom_listing_ascx.ListEntries() in C:\HostingSpaces\promptho\coastlands.org.au\wwwroot\systems\custom_listing.ascx:295
    ASP.systems_custom_listing_ascx.lnkCustomEntries_Click(Object sender, EventArgs e) in C:\HostingSpaces\promptho\coastlands.org.au\wwwroot\systems\custom_listing.ascx:314
    System.Web.UI.WebControls.LinkButton.OnClick(EventArgs e) +118
    System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument) +113
    System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +9
    System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
    System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +176
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5563

    Any help would be appreciated. I don't have experience with any of this.

    Thanks!

  2. #2
    Join Date
    Oct 2012
    Posts
    47
    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.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles