Server Error in '/' Application.

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1

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: MySql.Data.MySqlClient.MySqlException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1

Source Error:


Line 545:        Dim MySqlCommandDetalhe As New MySqlCommand(strSQL, conexaoMySQL)
Line 546:        conexaoMySQL.Open()
Line 547:        drMySql = MySqlCommandDetalhe.ExecuteReader()
Line 548:
Line 549:        If drMySql.Read() = True Then

Source File: C:\Inetpub\vhosts\zbytv.com\httpdocs\videos.aspx.vb    Line: 547

Stack Trace:


[MySqlException (0x80004005): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1]
   MySql.Data.MySqlClient.MySqlStream.OpenPacket() +280
   MySql.Data.MySqlClient.NativeDriver.ReadResult(UInt64& affectedRows, Int64& lastInsertId) +59
   MySql.Data.MySqlClient.MySqlDataReader.GetResultSet() +62
   MySql.Data.MySqlClient.MySqlDataReader.NextResult() +1008
   MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior) +1658
   model_videos.getVideo() in C:\Inetpub\vhosts\zbytv.com\httpdocs\videos.aspx.vb:547
   model_videos.Page_Load(Object sender, EventArgs e) in C:\Inetpub\vhosts\zbytv.com\httpdocs\videos.aspx.vb:90
   System.Web.UI.Control.OnLoad(EventArgs e) +132
   System.Web.UI.Control.LoadRecursive() +66
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2428


Version Information: Microsoft .NET Framework Version:2.0.50727.8974; ASP.NET Version:2.0.50727.8975