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 50:         if (objConnection == null)
Line 51:             objConnection = new MySqlConnection(System.Configuration.ConfigurationManager.AppSettings.Get("ConnectionStringMYSQL"));
Line 52:         objConnection.Open();
Line 53:         return objConnection;
Line 54:     }

Source File: g:\pleskvhosts\fdacityadvisor.com\httpdocs\bd\App_Code\CityDeptContacts.cs    Line: 52

Stack Trace:


[SocketException (0x2af9): No such host is known]
   System.Net.Dns.InternalGetHostByName(String hostName, Boolean includeIPv6) +5447118
   System.Net.Dns.GetHostByName(String hostName) +70
   MySql.Data.Common.StreamCreator.GetStream(Int32 timeOut) +207
   MySql.Data.MySqlClient.NativeDriver.Open() +306

[MySqlException: Unable to connect to any of the specified MySQL hosts]
   MySql.Data.MySqlClient.NativeDriver.Open() +358
   MySql.Data.MySqlClient.MySqlConnection.Open() +138
   clsCityDeptContacts.GetConnection() in g:\pleskvhosts\fdacityadvisor.com\httpdocs\bd\App_Code\CityDeptContacts.cs:52
   clsCityDeptContacts.GetDate(String Sql) in g:\pleskvhosts\fdacityadvisor.com\httpdocs\bd\App_Code\CityDeptContacts.cs:104
   Controls_PhoneNo.Page_Load(Object sender, EventArgs e) in g:\pleskvhosts\fdacityadvisor.com\httpdocs\bd\Controls\PhoneNo.ascx.cs:28
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +50
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627


Version Information: Microsoft .NET Framework Version:2.0.50727.9061; ASP.NET Version:2.0.50727.9062