Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8060423
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T09:59:15+00:00 2026-06-05T09:59:15+00:00

We have a C# app that has been working on three machines, 2 running

  • 0

We have a C# app that has been working on three machines, 2 running Mono and 1 running Windows succesfully for the last 4 years.

Recently, we had a crash and updated the Windows machine while doing the repair. MySql on the machine is 5.5.16

Post the update, the app is now throwing the error in the title “Unhandled Exception: MySql.Data.MySqlClient.MySqlException: Duplicate entry ‘CC2-2012-04-10-201205’ for key ‘PRIMARY'”

  • None of the fields are auto-incremented
  • We are using a DbDataAdapter
  • The sql statement is an UPDATE
  • All the indexes, table strucutures, privileges etc appear to be the same across all servers
  • There are no triggers on the tables
  • We have dropped and repaired the tables and indexes over and over to no avail
  • We have tried MyIASM and InnoDB (We initially used InnoDB)

I have no idea how an update statement can fail with a duplicate key, about the nearest solution I have found was a MySql error many, many versions ago here:
http://bugs.mysql.com/bug.php?id=27650
But that was repaired many years ago apparently.

Anyone have any ideas where I can look next?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T09:59:17+00:00Added an answer on June 5, 2026 at 9:59 am

    The issue turned out to be a version mismatch between the ADO.NET Driver for MySQL (Connector/NET) and the MySQL server version. Pretty obvious really.

    The ADO driver we were using turned out to be a fairly old version, and there must have been some major changes in the meanwhile.

    Simply upgrading the mysql.data.dll fixed everything up

    EDIT: Confirmed, we were using a very old MySql.Data ADO.NET driver version 1.0.10.1
    This worked with MySql server 5.1.53 and below. (This was the highest server version we had where our code still worked)

    Once we upgraded to MySql server version 5.5.24 the apps all began failing with the DataAdapter excepting out with duplicate records (where there were none)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an app that has a TableView, NavigationView and TabBar running together. There
I have an application that runs in fullscreen mode and has been working fine.
I have an application that has been working with session variables no problem. I
I am working on a web app project that has been in development for
Recently I have been working on a multiplayer networking app. I had successfully implemented
I have a site that has been working fine for months. This morning I
Have an app that has listings - think classified ads - and each listing
I have an app that has a centre view with two views off to
I have an app that has a tabbar at the bottom. When I select
I have an app that has a list of items. My customer prefers to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.