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 23:             <div class="col-xs-12 col-sm-12 col-md-12 col-lg-5 mb-3">
Line 24:                 <div id="large_image">
Line 25:                     <img src="<%= Convert.ToString(dtproduct.Rows[0]["URL"]) %>" alt="image-1.5">
Line 26:                 </div>
Line 27:             </div>

Source File: c:\hostingspaces\chair\theroyalchairs.com\wwwroot\ChairDetails.aspx    Line: 25

Stack Trace:


[IndexOutOfRangeException: There is no row at position 0.]
   System.Data.RBTree`1.GetNodeByIndex(Int32 userIndex) +2519554
   System.Data.DataRowCollection.get_Item(Int32 index) +20
   ASP.chairdetails_aspx.__RenderContent2(HtmlTextWriter __w, Control parameterContainer) in c:\hostingspaces\chair\theroyalchairs.com\wwwroot\ChairDetails.aspx:25
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +276
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +80
   ASP.home_master.__Renderform1(HtmlTextWriter __w, Control parameterContainer) in c:\hostingspaces\chair\theroyalchairs.com\wwwroot\Home.Master:128
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +276
   System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +11662591
   System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer) +47
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +80
   System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer) +53
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +169
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +80
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +169
   System.Web.UI.Page.Render(HtmlTextWriter writer) +40
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +80
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4239


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