When I'm trying to connect with DB from 64-bit Windows 7 with installed MySql 64-bit ODBC driver I had following exception:
"The specified DSN contains an architecture mismatch between the Driver and Application"
How can I connect to DB from 64-bit W 7??? Before I work on 32-bit system and with 32-bit mysql odbc driver everything run fine.
Here is my code that throws exception:
this.Con = ADO.CreateConnection();
this.Con.ConnectionString = "Provider=" + this.Provider + ";Persist Security Info=False;Data Source=" + this.DatabaseSrc;
this.Con.Open(); //here the exception occurs
Thanks in advance,
This error is returned by the provider you are using. We don't think, it is somehow related to TC.
BTW, here is some information on this error:
Allen - SmartBear Support
I resolve this problem using connection string instead of DSN. Strange, but works.