I downloaded a mysql dll for 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=, Culture=neutral, PublicKeyToken=b77a5c561934e089′ failed