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 111:        if (Session[Constantes.MOSTRAR_CALCULO] == null)
Line 112:        {
Line 113:            bool visible = new DATarifa().temTarifa();
Line 114:            Session[Constantes.MOSTRAR_CALCULO] = visible;
Line 115:        }

Source File: c:\inetpub\vhosts\jfconsultores.com.br\campomaior.jfconsultores.com.br\Template\Login.master.cs    Line: 113

Stack Trace:


[MySqlException (0x80004005): Unable to connect to any of the specified MySQL hosts.]
   MySql.Data.MySqlClient.NativeDriver.Open() +1234
   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
   AguasVirtuais.Entities.Repositorio.DATarifa.temTarifa() in D:\fonte web\web\Aguas Virtuais\Aguas Virtuais\AguasVirtuais\Desenvolvimento\AguasVirtuais.Entities\Repositorio\DATarifa.cs:62
   Template_Login.mostrarBotaoCalculo() in c:\inetpub\vhosts\jfconsultores.com.br\campomaior.jfconsultores.com.br\Template\Login.master.cs:113
   Template_Login.Page_Load(Object sender, EventArgs e) in c:\inetpub\vhosts\jfconsultores.com.br\campomaior.jfconsultores.com.br\Template\Login.master.cs:16
   System.Web.UI.Control.OnLoad(EventArgs e) +106
   System.Web.UI.Control.LoadRecursive() +68
   System.Web.UI.Control.LoadRecursive() +162
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3785


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