Exception Details: CoreLab.MySql.MySqlException: Lost connection to MySQL server during query
I occassionally gets this error message - and I cannot figure out why.
Maybe you can give me some tips what to change?
Here's the code
http://authors.aspalliance.com/aylar/Vi ... odeID=3423
Thanks
/Johan
CoreLab.MySql.MySqlException
Re: CoreLab.MySql.MySqlException
Add Try-Finally construction to your code and close connection in Finally clause.
It's me again - and I'm sad to say that it did not help actually
I've localized the error to the line
"Dim objrdr As MySqlDataReader = objCom.ExecuteReader()"
The error doesn't occur all the time i access the page - but almost always if i go from that page to another and then wait 10 seconds and clicks on a link back to this page.
The code for the Sub in which the error occurs:
http://authors.aspalliance.com/aylar/Vi ... odeID=3456
I've localized the error to the line
"Dim objrdr As MySqlDataReader = objCom.ExecuteReader()"
The error doesn't occur all the time i access the page - but almost always if i go from that page to another and then wait 10 seconds and clicks on a link back to this page.
The code for the Sub in which the error occurs:
http://authors.aspalliance.com/aylar/Vi ... odeID=3456
Been looking at it more now.
I have the same problem on all my pages when using ExecuteReader()
Been changing the code aswell - using databind()
http://authors.aspalliance.com/aylar/Vi ... odeID=3460
Many thanks if you can help me.
I have the same problem on all my pages when using ExecuteReader()
Been changing the code aswell - using databind()
http://authors.aspalliance.com/aylar/Vi ... odeID=3460
Many thanks if you can help me.