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 36:  
Line 37:  Entity ent = Entity.GetEntity("PRODUCTS");
Line 38:  DataRow dr = ent.GetInstances(BoostApplication.CurrentUser, BoostApplication.CurrentLanguage, "", "PRD_ID=" + productId).Rows[0];
Line 39:  
Line 40:  ((Campus.BasePage) Page).PageHeading = dr["PRD_NAME"].ToString();

Source File: e:\Campus\1.0\PDVC\Website\generated_content\en-GB\2.C.DYN.PROD__1.ascx    Line: 38

Stack Trace:


[IndexOutOfRangeException: There is no row at position 0.]
   System.Data.RBTree`1.GetNodeByIndex(Int32 userIndex) +1551082
   System.Data.RBTree`1.get_Item(Int32 index) +19
   System.Data.DataRowCollection.get_Item(Int32 index) +11
   ASP.generated_content_en_gb_2_c_dyn_prod__1_ascx.OnInit(EventArgs e) in e:\Campus\1.0\PDVC\Website\generated_content\en-GB\2.C.DYN.PROD__1.ascx:38
   System.Web.UI.Control.InitRecursive(Control namingContainer) +333
   System.Web.UI.Control.AddedControl(Control control, Int32 index) +198
   System.Web.UI.ControlCollection.Add(Control child) +80
   ASP.financial_services_productdetails_aspx.OnAddControls() in e:\Campus\1.0\PDVC\Website\financial-services\productdetails.aspx:58
   Campus.BaseWebPage.OnInit(EventArgs e) +59
   System.Web.UI.Control.InitRecursive(Control namingContainer) +333
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +378


Version Information: Microsoft .NET Framework Version:2.0.50727.4984; ASP.NET Version:2.0.50727.4971