Server Error in '/' Application.

Expected end of data packet

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: Expected end of data packet

Source Error:


Line 75: 
Line 76:                     myCommandR = New MySqlCommand(regString, conn)
Line 77:                     myReaderR = myCommandR.ExecuteReader()
Line 78:                     While myReaderR.Read()
Line 79:                         lb_cat_sottocat.Text = "<a class='bc' href='prodotti.aspx?c" & i & "=" & cat_prec_value & "'>" & myReaderR("categoria").ToString & "</a> <span style='color:#90AD35;'>»</span> " & lb_cat_sottocat.Text

Source File: D:\inetpub\webs\tradelectricit\prodotti.aspx.vb    Line: 77

Stack Trace:


[MySqlException (0x80004005): Expected end of data packet]
   MySql.Data.MySqlClient.NativeDriver.CheckEOF() +188
   MySql.Data.MySqlClient.NativeDriver.ReadColumnMetadata(Int32 count) +73
   MySql.Data.MySqlClient.MySqlDataReader.NextResult() +517
   MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior) +825
   MySql.Data.MySqlClient.MySqlCommand.ExecuteReader() +6
   _prodotti.Page_Load(Object sender, EventArgs e) in D:\inetpub\webs\tradelectricit\prodotti.aspx.vb:77
   System.Web.UI.Control.OnLoad(EventArgs e) +79
   System.Web.UI.Control.LoadRecursive() +130
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2853


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