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:

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:


[IndexOutOfRangeException: There is no row at position 0.]
   System.Data.RBTree`1.GetNodeByIndex(Int32 userIndex) +1880010
   System.Data.DataRowCollection.get_Item(Int32 index) +14
   Adfero.ConsumerNews.WebControls.Base.CNBase.AddExposerCodeCollection(DefnSearch& Search, String CodeExposerControlID) in T:\Web Projects\ConsumerNewsWebControls\Current Version\BaseControls\CNBase.vb:1012
   Adfero.ConsumerNews.WebControls.Base.CNBase.get_DataSource() in T:\Web Projects\ConsumerNewsWebControls\Current Version\BaseControls\CNBase.vb:200
   Adfero.ConsumerNews.WebControls.Public.NewsListingPhoto.CreateSubChildControls2(ControlCollection& ControlsToRender) in T:\Web Projects\ConsumerNewsWebControls\Current Version\PublicControls\NewsListingPhoto.vb:141
   Adfero.ConsumerNews.WebControls.Adapters.CNLayoutBoxAdapter1.CreateChildControls() in T:\Web Projects\ConsumerNewsWebControls\Current Version\PrivateControls\Adapters\CNLayoutBoxAdapter1.vb:174
   System.Web.UI.Control.EnsureChildControls() +128
   System.Web.UI.WebControls.CompositeControl.DataBind() +38
   System.Web.UI.Control.DataBindChildren() +216
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +216
   System.Web.UI.Control.DataBind() +12
   System.Web.UI.Control.DataBindChildren() +216
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +216
   System.Web.UI.Control.DataBind() +12
   System.Web.UI.Control.DataBindChildren() +216
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +216
   System.Web.UI.Control.DataBind() +12
   System.Web.UI.Control.DataBindChildren() +216
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +216
   System.Web.UI.Control.DataBind() +12
   System.Web.UI.Control.DataBindChildren() +216
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +216
   System.Web.UI.Control.DataBind() +12
   System.Web.UI.Control.DataBindChildren() +216
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +216
   System.Web.UI.Control.DataBind() +12
   Adfero.ConsumerNews.WebControls.Base.CNBase.CNBase_Load(Object sender, EventArgs e) in T:\Web Projects\ConsumerNewsWebControls\Current Version\BaseControls\CNBase.vb:845
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Adapters.ControlAdapter.OnLoad(EventArgs e) +12
   System.Web.UI.Control.LoadRecursive() +2067081
   System.Web.UI.Control.LoadRecursive() +131
   System.Web.UI.Control.LoadRecursive() +131
   System.Web.UI.Control.LoadRecursive() +131
   System.Web.UI.Control.LoadRecursive() +131
   System.Web.UI.Control.LoadRecursive() +131
   System.Web.UI.Control.LoadRecursive() +131
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061


Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42