Server Error in '/' Application.

workID

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: workID

Source Error:


Line 291:                resultsCounter += 1
Line 292:                'returned.Append("<span class=""peopleDetailsLine""><a style=""font-weight:bold"" href=""workDetails.aspx?workID=" & result("workID") & """>" & result("workTitle") & "</a>" & "</span>" & vbNewLine)
Line 293:                resultsTMP += "<span class=""peopleDetailsLine""><a style=""font-weight:bold"" href=""workDetails.aspx?workID=" & result("workID") & """>" & util.fixTitle(result("workTitle")) & "</a>" & "</span>" & vbNewLine
Line 294:            End While
Line 295:            resultsTMP += "</div>" & vbNewLine

Source File: E:\AADATA\WEB\NT\peopleDetails.aspx.vb    Line: 293

Stack Trace:


[IndexOutOfRangeException: workID]
   System.Data.ProviderBase.FieldNameLookup.GetOrdinal(String fieldName) +6314078
   System.Data.SqlClient.SqlDataReader.GetOrdinal(String name) +249
   System.Data.SqlClient.SqlDataReader.get_Item(String name) +23
   peopleDetails.getPersonRoles1(Int32 personID) in E:\AADATA\WEB\NT\peopleDetails.aspx.vb:293
   ASP.peopledetails_aspx.__Renderform1(HtmlTextWriter __w, Control parameterContainer) in E:\AADATA\WEB\NT\peopleDetails.aspx:74
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +115
   System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +253
   System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output) +87
   System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer) +53
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +240
   System.Web.UI.Page.Render(HtmlTextWriter writer) +38
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4240


Version Information: Microsoft .NET Framework Version:2.0.50727.8974; ASP.NET Version:2.0.50727.8975