Closed sbmw closed 1 year ago
I think this looks more like a MySQL/MySql.Data problem than a Rebus problem. 🙂
A quick bingle for "mysql.data KeyNotFoundException" led me to https://stackoverflow.com/questions/24490164/keynotfoundexception-on-mysql-query-c-sharp which hints at the possibility that this could be caused by a collation mismatch.
As I am fairly certain that this has got nothing to do with Rebus/Rebus.MySql I am closing the issue now. Please don't hesitate to continue the thread here if you need me for anything Rebus-related.
You're absolutely right, this was an external issue caused by a change to the hosted database. I needed to update all DB connectivity libraries.
Sorry for the panic issue and thank you very much for pointing me in the right direction!!
Happy to hear you got it fixed 🙂 👍
Hi, I have a site that's been running fine for years, but suddenly if services are restarted, Rebus will throw exceptions such as:
If I delete and recreate the database table (empty) the "missing key" changes to, but the tables aren't created:
The live site is using Rebus.MySql@1.1.1 and Rebus.ServiceProvider@4.0.2 but I seem to get the same errors with current versions.
Configure Services looks like:
Nothing has changed in the apps or infrastructure, just a restart of the service apps leads to the errors. I'm sorry for not having more useful detail but I just can't figure it out! :)