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 2792:            'Response.Write(Selekcija + "<br>")
Line 2793:
Line 2794:            LabelProductId.Text = dtSlike.Rows(0).Item("ProductsId").ToString
Line 2795:
Line 2796:            sqlSelect1 = "PodGrupacijaID,GrupacijaID,Title,TitleTranslated,UsersMainId, sifraProizvoda,webURL,Description,DescriptionTranslated,Quantity1, Price1 * " _

Source File: C:\Inetpub\vhosts\pokop.hr\httpdocs\Modules\WebShop\Catalogue.ascx.vb    Line: 2794

Stack Trace:


[IndexOutOfRangeException: There is no row at position 0.]
   System.Data.RBTree`1.GetNodeByIndex(Int32 userIndex) +2441565
   System.Data.DataRowCollection.get_Item(Int32 index) +19
   cms_content_Catalogue.Page_PreRender(Object sender, EventArgs e) in C:\Inetpub\vhosts\pokop.hr\httpdocs\Modules\WebShop\Catalogue.ascx.vb:2794
   System.Web.UI.Control.OnPreRender(EventArgs e) +11906436
   System.Web.UI.Control.PreRenderRecursiveInternal() +162
   System.Web.UI.Control.PreRenderRecursiveInternal() +256
   System.Web.UI.Control.PreRenderRecursiveInternal() +256
   System.Web.UI.Control.PreRenderRecursiveInternal() +256
   System.Web.UI.Control.PreRenderRecursiveInternal() +256
   System.Web.UI.Control.PreRenderRecursiveInternal() +256
   System.Web.UI.Control.PreRenderRecursiveInternal() +256
   System.Web.UI.Control.PreRenderRecursiveInternal() +256
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +6875


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