title: Server Error in '/' Application [No such host is known]
body: <p><strong>No such host is known</strong></p>
  
  <p><strong>Description</strong>: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. </p>
  
  <p><strong>Exception Details</strong>: System.Net.Sockets.SocketException: No such host is known</p>
  
  <p><strong>Source Error:</strong></p>
  
  <pre><code>Line 21:         MySqlConnection conn = new MySqlConnection(MyConStrings);
  Line 22:         MySqlCommand cmd = new MySqlCommand("SELECT id ,name  FROM asd_table Where weekno      ='"+getWeek+"';", conn);
  Line 23:         conn.Open(); //red highlight here
  </code></pre>
  
  <p><strong>Stack Trace:</strong></p>
  
  <pre><code>   [SocketException (0x2af9): No such host is known]
     System.Net.Dns.GetAddrInfo(String name) +6603642
     System.Net.Dns.InternalGetHostByName(String hostName, Boolean includeIPv6) +106
     System.Net.Dns.GetHostEntry(String hostNameOrAddress) +109
     MySql.Data.Common.MyNetworkStream.CreateStream(MySqlConnectionStringBuilder settings, Boolean unix) +64
     MySql.Data.Common.StreamCreator.GetStream(MySqlConnectionStringBuilder settings) +38
     MySql.Data.MySqlClient.NativeDriver.Open() +55
  
  [MySqlException (0x80004005): Unable to connect to any of the specified MySQL hosts.]
     MySql.Data.MySqlClient.NativeDriver.Open() +151
     MySql.Data.MySqlClient.Driver.Open() +22
     MySql.Data.MySqlClient.Driver.Create(MySqlConnectionStringBuilder settings) +208
     MySql.Data.MySqlClient.MySqlPool.GetPooledConnection() +261
     MySql.Data.MySqlClient.MySqlPool.TryToGetDriver() +93
     MySql.Data.MySqlClient.MySqlPool.GetConnection() +65
     MySql.Data.MySqlClient.MySqlConnection.Open() +625
     play_db_mysql.Page_Load(Object sender, EventArgs e) in d:\hosting\folder1\html\web\website\asd_db_mysql.aspx.cs:23
     System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +51
     System.Web.UI.Control.OnLoad(EventArgs e) +92
     System.Web.UI.Control.LoadRecursive() +54
     System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +772
  </code></pre>
  
  <p>been stuck with this like forever, i have my sql db hosted in godaddy and this is my connection string that ive used in my .cs file</p>
  
  <pre><code>String MyConStrings = "SERVER=serverurl;" +
      "DATABASE=dbname;" +
      "UID=username;" +
      "PASSWORD=passsword;";
  </code></pre>
  
  <p>any help would be much appreciated.</p>