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 119:        //DataTable dt = obj.searchquery(sql1);
Line 120:        DataTable dt = obj.selectPlaylist("prithviplay", uid, email, playlistname);
Line 121:        songs.Append(dt.Rows[0]["AUDIO_ONLY_YOUTUBE_LINK_NEW"]);
Line 122:
Line 123:        playlistts.Append("<ul id='playlistss'>");

Source File: e:\PRIMEDatabase\mukesh\prithvifav.aspx.cs    Line: 121

Stack Trace:


[IndexOutOfRangeException: There is no row at position 0.]
   System.Data.RBTree`1.GetNodeByIndex(Int32 userIndex) +2133435
   System.Data.DataRowCollection.get_Item(Int32 index) +21
   prithvifav.playlists() in e:\PRIMEDatabase\mukesh\prithvifav.aspx.cs:121
   prithvifav.Page_PreRender(Object sender, EventArgs e) in e:\PRIMEDatabase\mukesh\prithvifav.aspx.cs:39
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +51
   System.Web.UI.Control.OnPreRender(EventArgs e) +9906218
   System.Web.UI.Control.PreRenderRecursiveInternal() +88
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +883


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