当前位置: 代码迷 >> ASP.NET >> 报错劳驾高手帮忙看看Server Error in '/' Application
  详细解决方案

报错劳驾高手帮忙看看Server Error in '/' Application

热度:11057   发布时间:2013-02-25 00:00:00.0
报错麻烦高手帮忙看看Server Error in '/' Application
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: 

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) +1672170
  Book.Page_Load(Object sender, EventArgs e) +178
  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




--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272 
这是报错的信息 麻烦高手帮忙看看那 谢谢了!

------解决方案--------------------------------------------------------
There is no row at position 0.
得看你的代码才能帮你分析
------解决方案--------------------------------------------------------
你看看这个http://topic.csdn.net/u/20100526/14/2d555a73-7ce3-444b-9301-e1bb2cffc5a0
------解决方案--------------------------------------------------------
用戶權限是否給足
------解决方案--------------------------------------------------------
你这是在本地还是上传到服务器上之后?
------解决方案--------------------------------------------------------
There is no row at position 0.

 Book.Page_Load(Object sender, EventArgs e)

检查这个方法里使用获取的数据集是否是null值??
  相关解决方案