[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

10/17/2009 at 05:43AM PDT, ID: 24820332 | Points: 500
[x]
Attachment Details

Fatal error encountered attempting to read the resultset

Asked by DenilsonNet in Windows ATL / WTL / COM Programming, MySQL Server, Microsoft Development

Tags: C#, MySql Server, Visual Studio

While I'm accessing database localy, in a LAN network, my application runs perfectly, but when I try to connect to the same database but in a Host Shared MySql Server, ramdomicaly appears a error:Fatal error encountered attempting to read the resultset, as showed below in the code view...

Note that in the line 750 has the following code:

GBL.dbAL.rd = GBL.dbAL.cmd.ExecuteReader();

thanks for any help.

Visual Studio 2008
Connector .NET vers. 6.1.2
language C#
Windows XP
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
***Erro CadCPagar: MySql.Data.MySqlClient.MySqlException: Fatal error encountered during command execution. ---> MySql.Data.MySqlClient.MySqlException: Fatal error encountered attempting to read the resultset. ---> MySql.Data.MySqlClient.MySqlException: Connection unexpectedly terminated.
   at MySql.Data.MySqlClient.MySqlStream.LoadPacket()
   at MySql.Data.MySqlClient.MySqlStream.ReadPacket()
   at MySql.Data.MySqlClient.NativeDriver.ReadResult()
   at MySql.Data.MySqlClient.ResultSet.NextResult()
   at MySql.Data.MySqlClient.MySqlDataReader.NextResult()
   --- End of inner exception stack trace ---
   at MySql.Data.MySqlClient.MySqlDataReader.NextResult()
   at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)
   --- End of inner exception stack trace ---
   at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)
   at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader()
   at AutoLogic.ALFINANCEIRO.ContasPagar.frmContasPagar.CadCPagar() in D:\Projetos\ALSIGNNET\ALFINANCEIRO\ContasPagar\frmContasPagar.cs:line 750
[+][-]10/18/09 01:22 PM, ID: 25601240

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-91 - Hierarchy / EE_QW_3_20080625