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 59: 					CurrentChamber = New chamber(2)
Line 60: 				Else
Line 61: 					CurrentChamber = New chamber(Request.Url.Host.Replace("www.", "").Replace("dev.", ""))
Line 62: 				End If
Line 63: 

Source File: C:\inetpub\wwwroot\chambersystem\httpdocs2016\App_Code\pagebase.vb    Line: 61

Stack Trace:


[MySqlException (0x80004005): Unable to connect to any of the specified MySQL hosts.]
   MySql.Data.MySqlClient.NativeDriver.Open() +1279
   MySql.Data.MySqlClient.Driver.Open() +36
   MySql.Data.MySqlClient.Driver.Create(MySqlConnectionStringBuilder settings) +329
   MySql.Data.MySqlClient.MySqlPool.CreateNewPooledConnection() +18
   MySql.Data.MySqlClient.MySqlPool.GetPooledConnection() +290
   MySql.Data.MySqlClient.MySqlPool.TryToGetDriver() +151
   MySql.Data.MySqlClient.MySqlPool.GetConnection() +60
   MySql.Data.MySqlClient.MySqlConnection.Open() +1210
   DAL.MySqlService.Connect() in Z:\Clients\Profile Media Group\ChamberSystem2016\DAL\Utilities\MySqlService.vb:708
   DAL.MySqlService.ExecuteSqlReader(String sql) in Z:\Clients\Profile Media Group\ChamberSystem2016\DAL\Utilities\MySqlService.vb:194
   DAL.Data.chamber..ctor(String chamberURL) in Z:\Clients\Profile Media Group\ChamberSystem2016\DAL\Static\chamber.vb:8
   pagebase.Page_Init(Object sender, EventArgs e) in C:\inetpub\wwwroot\chambersystem\httpdocs2016\App_Code\pagebase.vb:61
   System.Web.UI.Control.OnInit(EventArgs e) +106
   System.Web.UI.Page.OnInit(EventArgs e) +16
   System.Web.UI.Control.InitRecursive(Control namingContainer) +166
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1598


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