[Mono-list] ASP.NET and MySQL

Robert Jordan robertj at gmx.net
Fri Sep 22 12:44:57 EDT 2006


Loren Bandiera wrote:
> However, if write a small ASP.NET form and try and execute that same
> code from Page_load() it fails. This is the trace that xsp2 gives me:
> 
> MySql.Data.MySqlClient.MySqlException: Unable to connect to any of the
> specified MySQL hosts ---> System.Net.Sockets.SocketException: No such
> host is known
>   at System.Net.Dns.GetHostByName (System.String hostName) [0x00000] 
>   at MySql.Data.Common.StreamCreator.GetStream (Int32 timeOut) [0x00000] 
>   at MySql.Data.MySqlClient.NativeDriver.Open () [0x00000] --- End of inner exception stack trace ---
> 
>   at MySql.Data.MySqlClient.NativeDriver.Open () [0x00000] 
>   at MySql.Data.MySqlClient.Driver.Create (MySql.Data.MySqlClient.MySqlConnectionString settings) [0x00000] 
>   at MySql.Data.MySqlClient.MySqlConnection.Open () [0x00000] 
> 
> I'm at a loss for why it works from the command line but not from within
> an ASP page. It's the same connection string, server, etc.
> 
> Anyone seen this behavior before? Got any suggestions?
> 

I looks like this bug:

http://bugzilla.ximian.com/show_bug.cgi?id=79211

Check whether the path to your mono and/or xsp2 contains a symlink
and retry w/out the symlink.

Robert



More information about the Mono-list mailing list