“/”应用程序中的服务器错误。

在位置 0 处没有任何行。

说明: 执行当前 Web 请求期间,出现未经处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。

异常详细信息: System.IndexOutOfRangeException: 在位置 0 处没有任何行。

源错误:


行 2:  <%@ Register src="Top.ascx" tagname="Top" tagprefix="uc1" %>
行 3:  <uc1:Top ID="Top1" runat="server" />
行 4:  <div class="n_banner mc" id="a21"><div id="scrollC02"><%=dtAd.Rows[0]["AdCode"]%></div></div>
行 5:  <div class="clearit"></div>

源文件: f:\usr\localuser\hmw250158\Controls\Header_Video.ascx    行: 4

堆栈跟踪:


[IndexOutOfRangeException: 在位置 0 处没有任何行。]
   System.Data.RBTree`1.GetNodeByIndex(Int32 userIndex) +1556386
   System.Data.DataRowCollection.get_Item(Int32 index) +20
   ASP.controls_header_video_ascx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in f:\usr\localuser\hmw250158\Controls\Header_Video.ascx:4
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +268
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +8
   System.Web.UI.Control.Render(HtmlTextWriter writer) +10
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +57
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
   ASP.aspx_video_index_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in f:\usr\localuser\hmw250158\aspx\video\Index.aspx:11
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +268
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +8
   System.Web.UI.Page.Render(HtmlTextWriter writer) +29
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +57
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1386


版本信息: Microsoft .NET Framework 版本:4.0.30319; ASP.NET 版本:4.0.30319.34209