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 381:        {
Line 382:            dtt = PS.Utilities.Data.GetByColumn("Lookup", "FriendlyName", special).Tables[0];
Line 383:            offerSearch.OfferType = dtt.Rows[0]["FriendlyName"].ToString();
Line 384:            specialID = PS.Utilities.Data.GetIdByFriendlyName("Lookup", "FriendlyName", PS.Utilities.Parameters.GetPageParameter(this.Page, "Special"));
Line 385:            specialOffer = PS.Utilities.Data.GetIdListString(CoreBusiness.Offer.GetSpecialOffers(specialID), "OfferID");

Source File: c:\inetpub\vhosts\cardinaltravel.ro\httpdocs\UserControls\FrontendOffers.ascx.cs    Line: 383

Stack Trace:


[IndexOutOfRangeException: There is no row at position 0.]
   System.Data.RBTree`1.GetNodeByIndex(Int32 userIndex) +2136731
   System.Data.DataRowCollection.get_Item(Int32 index) +21
   UserControls_FrontendOffers.LoadOffers(String category, Int64 catID, DataTable offerCatIDs) in c:\inetpub\vhosts\cardinaltravel.ro\httpdocs\UserControls\FrontendOffers.ascx.cs:383
   OferteDeVacante_ProductCategoryList.LoadData() in c:\inetpub\vhosts\cardinaltravel.ro\httpdocs\OferteDeVacante\ProductCategoryList.aspx.cs:313
   OferteDeVacante_ProductCategoryList.Page_Load(Object sender, EventArgs e) in c:\inetpub\vhosts\cardinaltravel.ro\httpdocs\OferteDeVacante\ProductCategoryList.aspx.cs:39
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +51
   System.Web.UI.Control.OnLoad(EventArgs e) +95
   System.Web.UI.Control.LoadRecursive() +59
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +678


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