Server Error in '/' Application.

ExecuteReader: CommandText property has not been initialized

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: ExecuteReader: CommandText property has not been initialized

Source Error:


Line 166:        conLath.Open();
Line 167:
Line 168:        SDataReader = command.ExecuteReader();
Line 169:
Line 170:        // Create the DataSet using the DataSet.Load( ) method

Source File: c:\cyberedge\aao sites\GME-CEHAT.org\Organization\Details_Oraganization.aspx.cs    Line: 168

Stack Trace:


[InvalidOperationException: ExecuteReader: CommandText property has not been initialized]
   System.Data.SqlClient.SqlCommand.ValidateCommand(String method, Boolean async) +814
   System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) +155
   System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) +83
   System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) +198
   System.Data.SqlClient.SqlCommand.ExecuteReader() +137
   Organization_Details_Oraganization.getTitle(String sTitleID) in c:\cyberedge\aao sites\GME-CEHAT.org\Organization\Details_Oraganization.aspx.cs:168
   Organization_Details_Oraganization.Page_Load(Object sender, EventArgs e) in c:\cyberedge\aao sites\GME-CEHAT.org\Organization\Details_Oraganization.aspx.cs:36
   System.Web.UI.Control.OnLoad(EventArgs e) +106
   System.Web.UI.Control.LoadRecursive() +68
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3785


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