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

Source Error:


Line 96:             objCmdMySql = New MySqlDataAdapter(query, objConnMySql) ' OdbcDataAdapter(query, objConnMySql)
Line 97:             'objCmdMySql.MissingSchemaAction = MissingSchemaAction.AddWithKey
Line 98:             objCmdMySql.Fill(ds, TabName)
Line 99:         End If
Line 100:

Source File: D:\inetpub\webs\coonfuit\App_Code\DataManagerClass.vb    Line: 98

Stack Trace:


[MySqlException (0x80004005): Unable to connect to any of the specified MySQL hosts.]
   MySql.Data.MySqlClient.NativeDriver.Open() +1142
   MySql.Data.MySqlClient.Driver.Create(MySqlConnectionStringBuilder settings) +51
   MySql.Data.MySqlClient.MySqlConnection.Open() +366
   System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +119
   System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +135
   System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, String srcTable) +85
   DataManagerClass.OpenQuery(String query, String TabName) in D:\inetpub\webs\coonfuit\App_Code\DataManagerClass.vb:98
   Globals.TestLogin(String userPass, String userName, String userLevel, Boolean& SpecialPrivileges) in D:\inetpub\webs\coonfuit\App_Code\Globals.vb:247
   MasterPage.CheckUserAccess() in D:\inetpub\webs\coonfuit\MasterPage.master.vb:153
   MasterPage.Page_Load(Object sender, EventArgs e) in D:\inetpub\webs\coonfuit\MasterPage.master.vb:13
   System.Web.UI.Control.OnLoad(EventArgs e) +79
   System.Web.UI.Control.LoadRecursive() +130
   System.Web.UI.Control.LoadRecursive() +200
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2852


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