Server Error in '/' Application.

No such host is known

Description: 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.

Exception Details: System.Net.Sockets.SocketException: No such host is known

Source Error:


Line 25:         MySqlDataAdapter daimages = new MySqlDataAdapter(command);
Line 26:         DataTable dt = new DataTable();
Line 27:         daimages.Fill(dt);
Line 28:         CustomerList.DataSource = dt;
Line 29:         CustomerList.DataBind();

Source File: c:\inetpub\azurewebsites\cislive.com\Ecom\Index.aspx.cs    Line: 27

Stack Trace:


[SocketException (0x2af9): No such host is known]
   System.Net.Dns.GetAddrInfo(String name) +8627411
   System.Net.Dns.InternalGetHostByName(String hostName, Boolean includeIPv6) +109
   System.Net.Dns.GetHostEntry(String hostNameOrAddress) +125
   MySql.Data.Common.StreamCreator.GetDnsHostEntry(String hostname) +79

[Exception: Call to GetHostEntry failed after 00:00:00 while querying for hostname 'mysql51-044.wc1.ord1.stabletransit.com': SocketErrorCode=HostNotFound, ErrorCode=11001, NativeErrorCode=11001.]
   MySql.Data.Common.StreamCreator.GetDnsHostEntry(String hostname) +424
   MySql.Data.Common.StreamCreator.GetStream(UInt32 timeout) +550
   MySql.Data.MySqlClient.NativeDriver.Open() +369

[MySqlException (0x80004005): Unable to connect to any of the specified MySQL hosts.]
   MySql.Data.MySqlClient.NativeDriver.Open() +1910
   MySql.Data.MySqlClient.Driver.Open() +36
   MySql.Data.MySqlClient.Driver.Create(MySqlConnectionStringBuilder settings) +138
   MySql.Data.MySqlClient.MySqlPool.GetPooledConnection() +271
   MySql.Data.MySqlClient.MySqlPool.TryToGetDriver() +152
   MySql.Data.MySqlClient.MySqlPool.GetConnection() +60
   MySql.Data.MySqlClient.MySqlConnection.Open() +1047
   System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +172
   System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) +453
   System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) +141
   Ecom_Index.BindGridData() in c:\inetpub\azurewebsites\cislive.com\Ecom\Index.aspx.cs:27
   Ecom_Index.Page_Load(Object sender, EventArgs e) in c:\inetpub\azurewebsites\cislive.com\Ecom\Index.aspx.cs:17
   System.Web.UI.Control.OnLoad(EventArgs e) +106
   System.Web.UI.Control.LoadRecursive() +68
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3785


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.4063.0