Server Error in '/directory' 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 396:            <td><%# dsDepartment.FieldValue("Phone", Container) %></td>
Line 397:          </tr>
Line 398:          <% If Not (dsDepartment.theDS.Tables(0).Rows(0)("Fax") IS DbNull.Value ) Then %>
Line 399:          <tr>
Line 400:            <th scope="row">Fax:</th>

Source File: E:\Sites\Production\www2\directory\DepartmentList.aspx    Line: 398

Stack Trace:


[IndexOutOfRangeException: There is no row at position 0.]
   System.Data.RBTree`1.GetNodeByIndex(Int32 userIndex) +125
   System.Data.DataRowCollection.get_Item(Int32 index) +19
   ASP.departmentlist_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in E:\Sites\Production\www2\directory\DepartmentList.aspx:398
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +117
   System.Web.UI.Page.Render(HtmlTextWriter writer) +39
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +132
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +8680


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