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:


Line 47: <meta name="author" content="www.vancheer.com" />
Line 48: <meta name="viewport" content="width=device-width,user-scalable=no, initial-scale=1">
Line 49: <%=cmd.setseo(strm,dtlist1.Rows[0]["SeoTitle"].ToString(),dtlist1.Rows[0]["Seokeywords"].ToString(),dtlist1.Rows[0]["Seodescription"].ToString()) %>
Line 50: <link href="/template/style/main.css" rel="stylesheet" type="text/css" />
Line 51: <link href="/template/style/index.css" rel="stylesheet" type="text/css" />

Source File: d:\K-康联装饰\wwwroot\rShow.aspx    Line: 49

Stack Trace:


[IndexOutOfRangeException: There is no row at position 0.]
   System.Data.RBTree`1.GetNodeByIndex(Int32 userIndex) +1678426
   System.Data.DataRowCollection.get_Item(Int32 index) +21
   ASP.rshow_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in d:\K-康联装饰\wwwroot\rShow.aspx:49
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +109
   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) +27
   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) +3060


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1031