Click here to Skip to main content
15,895,142 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Server Error in '/gvcl' 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:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[IndexOutOfRangeException: There is no row at position 0.]
   System.Data.RBTree`1.GetNodeByIndex(Int32 userIndex) +1551046
   System.Data.RBTree`1.get_Item(Int32 index) +19
   System.Data.DataRowCollection.get_Item(Int32 index) +11
   SHGMemberCreate.GrdMember_SelectedIndexChanged(Object sender, EventArgs e) +2216
   System.Web.UI.WebControls.GridView.OnSelectedIndexChanged(EventArgs e) +146
   System.Web.UI.WebControls.GridView.HandleSelect(Int32 rowIndex) +90
   System.Web.UI.WebControls.GridView.HandleEvent(EventArgs e, Boolean causesValidation, String validationGroup) +197
   System.Web.UI.WebControls.GridView.RaisePostBackEvent(String eventArgument) +207
   System.Web.UI.WebControls.GridView.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +175
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565

Version Information: Microsoft .NET Framework Version:2.0.50727.4927; ASP.NET Version:2.0.50727.4927
Posted
Updated 28-Aug-15 2:02am
v2
Comments
Andy Lanng 28-Aug-15 8:03am    
You need to show us the code at SHGMemberCreate.GrdMember_SelectedIndexChanged(Object sender, EventArgs e) (line: 2216)
You will probably see a "[0]" in there causing the error when the enumerable object is empty
mrprakash 28-Aug-15 8:10am    
i checked it but its not a issue table are not empty there
Andy Lanng 28-Aug-15 8:16am    
Oh, well I guess the error is lying as well then. Cool - all is fine, then. Please mark the question as solved
ZurdoDev 28-Aug-15 8:15am    
You're trying to access a row that does not exist. Debug it and you'll see where.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900