Server Error in '/' Application. 2d274s

There is no row at position 0. 6z44k

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 137:
Line 138:        DS = MX1Data.mx1DataSet(SQL)
Line 139:        IdVideo = Int(DS.Tables(0).Rows(0)("idvideo").ToString)
Line 140:        If Session(ip) = 1 Or Session(ip) = 3 Then
Line 141:            MX1Data.mx1commDB("UPDATE videosenviados SET play_count=(play_count + 1) WHERE idvideo=" & IdVideo)

Source File: D:\host\motox\web\video\watch\Default.aspx.vb    Line: 139

Stack Trace:


[IndexOutOfRangeException: There is no row at position 0.]
   System.Data.RBTree`1.GetNodeByIndex(Int32 Index) +2136139
   System.Data.DataRowCollection.get_Item(Int32 index) +21
   video_play_Default.Page_Load() in D:\host\motox\web\video\watch\Default.aspx.vb:139
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +9873237
   System.Web.UI.Control.OnLoad(EventArgs e) +95
   System.Web.UI.Control.LoadRecursive() +59
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsynoint, Boolean includeStagesAfterAsynoint) +678


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