Server Error in '/' Application.

The CommandText property has not been properly 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: The CommandText property has not been properly initialized.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[InvalidOperationException: The CommandText property has not been properly initialized.]
   MySql.Data.MySqlClient.Interceptors.ExceptionInterceptor.Throw(Exception exception) +214
   MySql.Data.MySqlClient.MySqlCommand.Throw(Exception ex) +25
   MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior) +1630
   System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +214
   System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) +465
   System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) +147
   Tour.App_Code.Database.SelectSQL(String sqlString, Dictionary`2 parameters) in D:\Projects\Tour\Tour\App_Code\Database.cs:95
   Tour.App_Code.Functions.GetTestimonials(Int32 languageid) in D:\Projects\Tour\Tour\App_Code\Functions.cs:1181
   Tour.Testimonials.Page_Load(Object sender, EventArgs e) in D:\Projects\Tour\Tour\Testimonials.aspx.cs:22
   System.Web.UI.Control.OnLoad(EventArgs e) +108
   System.Web.UI.Control.LoadRecursive() +90
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1533


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