Click here to Skip to main content
15,886,578 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Any idea what might couse this error:

this erros results when i publish my web app in server

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) +1678618
   System.Data.DataRowCollection.get_Item(Int32 index) +21
   Csharp.klientiprov.Page_Load(Object sender, EventArgs e) in C:\Users\User\Documents\Visual Studio 2010\Projects\Csharp\Csharp\klientiprov.aspx.cs:175
   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) +91
   System.Web.UI.Control.LoadRecursive() +74
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2207
Posted

The error message tells you a lot more than it tells us: That you should start looking at line 175 of the file "klientiprov.aspx.cs".

This row will contain some indexing code which is asking for a row 0 of an empty list.

More we cannot say.
 
Share this answer
 
Comments
Andreas Gieriet 12-Jan-13 6:41am    
My 5!
This is the obvious guess based on the given infomration.
Andi
You didn't post any code, but based on the stack trace, have a look at the line 175 in the Page_Load method:

Csharp.klientiprov.Page_Load(Object sender, EventArgs e) in C:\Users\User\Documents\Visual Studio 2010\Projects\Csharp\Csharp\klientiprov.aspx.cs:175
 
Share this answer
 

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