Opening MySQL Connection problem.

62 views
Skip to first unread message

board.ch...@googlemail.com

unread,
Jan 20, 2010, 1:44:01 PM1/20/10
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting
Hi all,

The code that I currently have in my program worked fine but it has
stopped since working since i had to reinstall my computer and all
software.

When I try and open a connection to the MySQL Server I get an
exception "KeyNotFoundException was unhandled - The given key was not
present in the dictionary"

The code worked fine previous to reinstalling the PC.

I am using MySQL Version 5.1 and ADO MySQL Connector 6.2.2.

Any help in this matter would be highly appreciated.

Thank you

sarban jeet

unread,
Jan 24, 2010, 7:24:23 AM1/24/10
to dotnetde...@googlegroups.com
Check your connection string and user Name,Password
make sure then run this program
if not working then rebuild solution
Build --> Rebuild Solution and then run
i hope it will work

On 1/21/10, board.ch...@googlemail.com

Flavio Stakoviak

unread,
Jan 25, 2010, 12:32:14 PM1/25/10
to dotnetde...@googlegroups.com
maybe your sql string has some mistake. to make sure if you r accessing your mysql database try change the password at connection string if the error changes, so check your sql string again


--
Flavio Henrique Moura Stakoviak
DGTAF - Secretaria da Fazenda
MCTS: .NET Framework 3.5, ASP.NET Applications

Tjosull

unread,
Jan 25, 2010, 7:07:57 AM1/25/10
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting
Hi,

as I have the same problem I would like to know if there is a
solution. The connection string is right and I rebuilt the project a
couple of times. The program worked fine for me while using connector
version 5.0.8.1. All later versions don't work anymore.

I would appreciate your help.

Thanks.
T.

On 24 Jan., 13:24, sarban jeet <sarban4...@gmail.com> wrote:
> Check your connection string and user Name,Password
> make sure then run this program
> if not working then rebuild solution
> Build --> Rebuild Solution and then run
> i hope it will work
>

> On 1/21/10, board.christop...@googlemail.com

Paulo Hendler

unread,
Jan 25, 2010, 2:32:57 PM1/25/10
to dotnetde...@googlegroups.com
Check if the mysql provider there's on machine.config before build the application....






2010/1/25 Tjosull <sowe...@googlemail.com>
Reply all
Reply to author
Forward
0 new messages