Server Error in '/TR_RTP' Application.

Invalid attempt to read when no data is present.

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.InvalidOperationException: Invalid attempt to read when no data is present.

Source Error:


Line 28:         objProj.Read()
Line 29: 
Line 30:         strSQL = "Select * From TCP_Users where ID = " & objProj("PersonID")
Line 31:         objCmd = New sqlCommand(strSQL, objConnection)
Line 32:         objJur = objCmd.ExecuteReader()

Source File: C:\inetpub\wwwroot\TR_RTP\projectdetails.aspx.vb    Line: 30

Stack Trace:


[InvalidOperationException: Invalid attempt to read when no data is present.]
   System.Data.SqlClient.SqlDataReader.CheckDataIsReady(Int32 columnIndex, Boolean allowPartiallyReadColumn, Boolean permitAsync, String methodName) +2748411
   System.Data.SqlClient.SqlDataReader.TryReadColumn(Int32 i, Boolean setTimeout, Boolean allowPartiallyReadColumn) +54
   System.Data.SqlClient.SqlDataReader.GetValueInternal(Int32 i) +41
   System.Data.SqlClient.SqlDataReader.GetValue(Int32 i) +92
   publicview.Page_PreRender(Object sender, EventArgs e) in C:\inetpub\wwwroot\TR_RTP\projectdetails.aspx.vb:30
   System.Web.UI.Control.OnPreRender(EventArgs e) +11906436
   System.Web.UI.Control.PreRenderRecursiveInternal() +162
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +6875


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