IndexOutofRange Exception occurs in ASP 3.5
Hello,(Thanks for your time)
I'm getting the following runtime error message:
RowId
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: RowId
Source Error:
Line 125: pid = Convert.ToInt32(reader["RowId"]);
Stack Trace:
[IndexOutOfRangeException: RowId]
--------------
I get this error sometimes,But sometimes it works fine.
I have checked all the columns in the select statement, it contains RowID.
-i dont know where it went wrong.
me select statemet:
SELECT F.RowId, F.PredictionTopic, F.Memlgname, F.MemPrediction, F.UknowY,F.PredictedDate, C.Memvote, C.MemComments, C.CommUserName, C.CommentedDate FROM Forumtable
AS F LEFT OUTER JOIN CommentTable AS C ON F.RowId = C.RowId ORDER BY F.PredictedDate desc
-Thanks
-Appreciate your help
-
|