I've been developing a few simple scripts in ASP.NET which connect to a mySQL database.
Every now and again (probably every 20 queries or so) a query will fail with this error, and it isn't clear why. Pretty much any query can fail, but all work most of the time.
It's managed hosting and I don't know enough about MySQL to change anything from the defaults. The database is really just a test database with a few tens of rows, and no BLOBs.
I've developed a major project with ASP.NET and MS-SQL before, and have never run into a remotely similar problem. So I think it's unlikely that it's my code.
I'd be very grateful for any help or advice on how to tame MySQL (or chnage provider if it looks like a host problem).
This is an example of the code that will fail randomly:
Every now and again (probably every 20 queries or so) a query will fail with this error, and it isn't clear why. Pretty much any query can fail, but all work most of the time.
It's managed hosting and I don't know enough about MySQL to change anything from the defaults. The database is really just a test database with a few tens of rows, and no BLOBs.
I've developed a major project with ASP.NET and MS-SQL before, and have never run into a remotely similar problem. So I think it's unlikely that it's my code.
I'd be very grateful for any help or advice on how to tame MySQL (or chnage provider if it looks like a host problem).
This is an example of the code that will fail randomly: