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 28:         // MySqlDataAdapter  = new MySqlDataAdapter(command);
Line 29:         DataTable dt = new DataTable();
Line 30:         daimages.Fill(dt);
Line 31:         DataList1.DataSource = dt;
Line 32:         DataList1.DataBind();

Source File: c:\inetpub\azurewebsites\cislive.com\Ecom\ProductGallery.aspx.cs    Line: 30

Stack Trace:


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

[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) +349
   MySql.Data.Common.StreamCreator.GetStream(UInt32 timeout) +442
   MySql.Data.MySqlClient.NativeDriver.Open() +260

[MySqlException (0x80004005): Unable to connect to any of the specified MySQL hosts.]
   MySql.Data.MySqlClient.NativeDriver.Open() +329
   MySql.Data.MySqlClient.Driver.Open() +22
   MySql.Data.MySqlClient.Driver.Create(MySqlConnectionStringBuilder settings) +118
   MySql.Data.MySqlClient.MySqlPool.GetPooledConnection() +261
   MySql.Data.MySqlClient.MySqlPool.TryToGetDriver() +93
   MySql.Data.MySqlClient.MySqlPool.GetConnection() +65
   MySql.Data.MySqlClient.MySqlConnection.Open() +383
   System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +120
   System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) +160
   System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) +108
   Ecom_ProductGallery.DataListLoad() in c:\inetpub\azurewebsites\cislive.com\Ecom\ProductGallery.aspx.cs:30
   Ecom_ProductGallery.Page_Load(Object sender, EventArgs e) in c:\inetpub\azurewebsites\cislive.com\Ecom\ProductGallery.aspx.cs:17
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +51
   System.Web.UI.Control.OnLoad(EventArgs e) +95
   System.Web.UI.Control.LoadRecursive() +59
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +678


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