I downloaded a mysql dll for asp.net and i have put in the information of my database username and password. Could you help me on this one please??
This is the error message that i got from .net
MySql.Data.MySqlClient.MySqlException: Unable to connect to any of the specified MySQL hosts —> System.Security.SecurityException: Request for the permission of type ‘System.Net.SocketPermission, System, Version=22.214.171.124, Culture=neutral, PublicKeyToken=b77a5c561934e089′ failed
I had the same problem as well before. The problem is MySql.Data.Dll uses sockets and under the default permissions of the medium trust settings. Sockets aren’t allowed. Follow this instruction to solve your problem