Server Error in '/' Application.

Invalid attempt to call Read when reader is closed.

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 call Read when reader is closed.

Source Error:


Line 86:             
Line 87:             rs = PlaySqlComm.ExecuteReader
Line 88:             While rs.Read
Line 89:                 orgName = rs("orgName")
Line 90:                 orgAddress = rs("orgAddress")

Source File: E:\AADATA\WEB\NT\viewFiles1.aspx    Line: 88

Stack Trace:


[InvalidOperationException: Invalid attempt to call Read when reader is closed.]
   System.Data.SqlClient.SqlDataReader.ReadInternal(Boolean setTimeout) +890
   ASP.viewfiles1_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in E:\AADATA\WEB\NT\viewFiles1.aspx:88
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +115
   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