Server Error in '/' Application.

Unable to connect to any of the specified MySQL hosts.

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: MySqlConnector.MySqlException: Unable to connect to any of the specified MySQL hosts.

Source Error:


Line 640:            catch (Exception)
Line 641:            {
Line 642:                throw;
Line 643:            }
Line 644:            finally

Source File: c:\inetpub\vhosts\ahmetli.bel.tr\httpdocs\App_Code\Menu.cs    Line: 642

Stack Trace:


[MySqlException (0x80004005): Unable to connect to any of the specified MySQL hosts.]
   MySqlConnector.Core.<OpenTcpSocketAsync>d__111.MoveNext() +4661
   System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() +32
   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +62
   MySqlConnector.Core.<ConnectAsync>d__98.MoveNext() +1035
   System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() +32
   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +62
   MySqlConnector.<CreateSessionAsync>d__131.MoveNext() +1929
   System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() +32
   MySqlConnector.<CreateSessionAsync>d__131.MoveNext() +2351
   System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() +32
   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +62
   MySqlConnector.<OpenAsync>d__28.MoveNext() +1830
   System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() +32
   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +62
   MySqlConnector.MySqlConnection.Open() +61
   islem.MenuIslem.KategoriListesiForMenuByUstKategoriIDSortedByDil(String ustKategoriID, String dil) in c:\inetpub\vhosts\ahmetli.bel.tr\httpdocs\App_Code\Menu.cs:642
   UserControls_ust_menu.Page_Load(Object sender, EventArgs e) in c:\inetpub\vhosts\ahmetli.bel.tr\httpdocs\UserControls\ust-menu.ascx.cs:16
   System.Web.UI.Control.OnLoad(EventArgs e) +108
   System.Web.UI.Control.LoadRecursive() +90
   System.Web.UI.Control.LoadRecursive() +185
   System.Web.UI.Control.LoadRecursive() +185
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1602


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