Quantcast
Channel: MySQL Forums - Connector/NET and C#, Mono, .Net
Viewing all articles
Browse latest Browse all 1451

Unable to connect to any of the specified MySQL hosts - AGAIN! (no replies)

$
0
0
I am trying to connect to my remote MySql Database within Visual Studio using the compact framework as I am targetting a handheld device.

I can successfully add a data source and preview the data within the IDE so assume that the connection is ok regarding Connection strings and remote access.

However, when I attempt to access the data using any run time control I get the following error when the table is loaded using the .fill method.

A first chance exception of type 'System.Net.Sockets.SocketException' occurred in System.dll
A first chance exception of type 'System.Net.Sockets.SocketException' occurred in System.dll
A first chance exception of type 'System.Net.Sockets.SocketException' occurred in System.dll
A first chance exception of type 'System.Net.Sockets.SocketException' occurred in MySql.Data.CF.dll
A first chance exception of type 'MySql.Data.MySqlClient.MySqlException' occurred in MySql.Data.CF.dll
A first chance exception of type 'MySql.Data.MySqlClient.MySqlException' occurred in MySql.Data.CF.dll
A first chance exception of type 'MySql.Data.MySqlClient.MySqlException' occurred in MySql.Data.CF.dll

I also get this message when accessing a mysql database held on my local machine.

Is it possible I am using the wrong version of system.dll and/or mysql.data.cf.dll for what I am attempting?

Thanks in advance
Paul Lui

Viewing all articles
Browse latest Browse all 1451

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>