Server Error in '/' Application.

Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index

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.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index]
   System.Collections.CollectionBase.System.Collections.IList.get_Item(Int32 index) +14856408
   Baynet.ListingAlert.BusinessLogic.BusinessObjects.RETS.RETSFieldCollection.get_Item(Int32 index) +19
   Baynet.ListingAlert.BusinessLogic.BusinessManagement.SearchSession.RETSSearchByDre_Office(Int32 agentId, RETSMls mls, String pid, Boolean isCorporate, Boolean active, Boolean pending, Boolean sold) +1927
   Baynet.ListingAlert.BusinessLogic.BusinessManagement.SearchSession.SearchByOfficeID(Int32 agentId, Int32 mlsId, String dreNumber, Boolean active, Boolean pending, Boolean sold) +162
   WSDataAccess.ListingDB.GetAgentOfficeListings(Int32 agentId, Boolean active, Boolean pending, Boolean sold) +867
   gallery.GetDataTableFromCache() in C:\Baynet\Source\trunk\EAgents\Presentation\WebUI\EAWebSites\gallery.aspx.cs:492
   gallery.rptGalleryType_ItemDataBound(Object sender, RepeaterItemEventArgs e) in C:\Baynet\Source\trunk\EAgents\Presentation\WebUI\EAWebSites\gallery.aspx.cs:1606
   System.Web.UI.WebControls.Repeater.OnItemDataBound(RepeaterItemEventArgs e) +137
   System.Web.UI.WebControls.Repeater.CreateItem(Int32 itemIndex, ListItemType itemType, Boolean dataBind, Object dataItem) +191
   System.Web.UI.WebControls.Repeater.AddDataItemsIntoItemsArray(IEnumerable dataSource, Boolean useDataSource) +279
   System.Web.UI.WebControls.Repeater.PostGetDataAction(IEnumerable dataSource) +104
   System.Web.UI.WebControls.Repeater.OnDataBinding(EventArgs e) +80
   gallery.BindGalleryRepeater(Boolean needUpdateSessionData) in C:\Baynet\Source\trunk\EAgents\Presentation\WebUI\EAWebSites\gallery.aspx.cs:1456
   gallery.Page_Load(Object sender, EventArgs e) in C:\Baynet\Source\trunk\EAgents\Presentation\WebUI\EAWebSites\gallery.aspx.cs:383
   System.Web.UI.Control.OnLoad(EventArgs e) +106
   System.Web.UI.Control.LoadRecursive() +68
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3785


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