Server Error in '/' Application.

Index was outside the bounds of the array.

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: Index was outside the bounds of the array.

Source Error:


Line 12:         if (!IsPostBack)
Line 13:         {
Line 14:             System.Data.DataRow _rw = ((System.Data.DataTable)(sqlDS.Select(new DataSourceSelectArguments()) as System.Data.DataView).Table).Select(string.Format("Id_Usuario = '{0}'", Context.User.Identity.Name))[0];
Line 15:             xLblNo.Text = _rw["Ext"].ToString();
Line 16:             xLblCT.Text = _rw["CodTel"].ToString();

Source File: d:\IIS\Xpress-Mexico\Widgets\Directorio.ascx    Line: 14

Stack Trace:


[IndexOutOfRangeException: Index was outside the bounds of the array.]
   ASP.Directorio.Page_Init(Object sender, EventArgs e) in d:\IIS\Xpress-Mexico\Widgets\Directorio.ascx:14
   System.Web.UI.Control.OnInit(EventArgs e) +108
   System.Web.UI.Control.InitRecursive(Control namingContainer) +173
   System.Web.UI.Control.InitRecursive(Control namingContainer) +380
   System.Web.UI.Control.AddedControl(Control control, Int32 index) +219
   DevExpress.Web.ASPxPopupControl.Internal.PopupWindowContentControlLite.CreateContentHierarchy(WebControl parentControl) +634
   DevExpress.Web.ASPxClasses.ASPxWebControlBase.CreateChildControls() +149
   System.Web.UI.Control.EnsureChildControls() +107
   DevExpress.Web.ASPxClasses.Internal.RenderUtils.EnsureChildControlsRecursive(Control control, Predicate`1 skipControlCondition) +58
   DevExpress.Web.ASPxClasses.Internal.RenderUtils.EnsureChildControlsRecursive(Control control, Predicate`1 skipControlCondition) +161
   DevExpress.Web.ASPxClasses.Internal.RenderUtils.EnsureChildControlsRecursive(Control control, Predicate`1 skipControlCondition) +161
   DevExpress.Web.ASPxClasses.Internal.RenderUtils.EnsureChildControlsRecursive(Control control, Predicate`1 skipControlCondition) +161
   DevExpress.Web.ASPxClasses.Internal.RenderUtils.EnsureChildControlsRecursive(Control control, Predicate`1 skipControlCondition) +161
   DevExpress.Web.ASPxClasses.Internal.RenderUtils.EnsureChildControlsRecursive(Control control, Predicate`1 skipControlCondition) +161
   DevExpress.Web.ASPxClasses.ASPxWebControlBase.EnsureChildControlsRecursive(Control control) +56
   DevExpress.Web.ASPxClasses.ASPxWebControlBase.CreateChildControls() +149
   System.Web.UI.Control.EnsureChildControls() +107
   DevExpress.Web.ASPxClasses.Internal.RenderUtils.EnsureChildControlsRecursive(Control control, Predicate`1 skipControlCondition) +58
   DevExpress.Web.ASPxClasses.Internal.RenderUtils.EnsureChildControlsRecursive(Control control, Predicate`1 skipControlCondition) +161
   DevExpress.Web.ASPxClasses.ASPxWebControlBase.EnsureChildControlsRecursive(Control control) +56
   DevExpress.Web.ASPxClasses.ASPxWebControlBase.CreateChildControls() +149
   System.Web.UI.Control.EnsureChildControls() +107
   DevExpress.Web.ASPxClasses.Internal.RenderUtils.EnsureChildControlsRecursive(Control control, Predicate`1 skipControlCondition) +58
   DevExpress.Web.ASPxClasses.Internal.RenderUtils.EnsureChildControlsRecursive(Control control, Predicate`1 skipControlCondition) +161
   DevExpress.Web.ASPxClasses.ASPxWebControlBase.EnsureChildControlsRecursive(Control control) +56
   DevExpress.Web.ASPxClasses.ASPxWebControlBase.CreateChildControls() +149
   DevExpress.Web.ASPxClasses.ASPxWebControl.CreateChildControls() +165
   System.Web.UI.Control.EnsureChildControls() +107
   DevExpress.Web.ASPxClasses.ASPxWebControl.InitInternal() +85
   DevExpress.Web.ASPxClasses.ASPxDataWebControlBase.OnInit(EventArgs e) +16
   DevExpress.Web.ASPxDocking.ASPxDockPanel.OnInit(EventArgs e) +16
   System.Web.UI.Control.InitRecursive(Control namingContainer) +173
   System.Web.UI.Control.InitRecursive(Control namingContainer) +380
   System.Web.UI.Control.InitRecursive(Control namingContainer) +380
   System.Web.UI.Control.InitRecursive(Control namingContainer) +380
   System.Web.UI.Control.InitRecursive(Control namingContainer) +380
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +491


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