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 303:	cmd.CommandType = System.Data.CommandType.Text
Line 304:	cmd.CommandText = sqlA : cmd.Connection = conn
Line 305:	conn.Open() : DR = cmd.ExecuteReader 
Line 306:
Line 307:	Do while DR.Read 

Source File: C:\www\region.aspx    Line: 305

Stack Trace:


[InvalidOperationException: ExecuteReader: CommandText property has not been initialized]
   System.Data.SqlClient.SqlCommand.ValidateCommand(String method, Boolean async) +829
   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) +156
   System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) +84
   System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) +207
   System.Data.SqlClient.SqlCommand.ExecuteReader() +142
   ASP.region_aspx.Destacados(Double lo, Double ls, Int32 CuantosAloj, Int32 size, Int32 idplace, Int32 circuito, Int32 zona, Int32 pais, Int32 TipoDestacado, Int32 idCityBooking) in C:\www\region.aspx:305
   ASP.region_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in C:\www\region.aspx:236
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +276
   System.Web.UI.Page.Render(HtmlTextWriter writer) +40
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +80
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4239


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