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 11:     {
Line 12:         KKC.KKCIntra.SEO seo = new KKC.KKCIntra.SEO();
Line 13:         seo.Optimoi("Kuvia työpaikalta", "Kuvia työpaikalta", "Kuvia työpaikalta");
Line 14:     }
Line 15: 

Source File: c:\www\www.kauppakartano.com\kuvat-tyo.aspx.cs    Line: 13

Stack Trace:


[MySqlException (0x80004005): Unable to connect to any of the specified MySQL hosts.]
   MySql.Data.MySqlClient.NativeDriver.Open() +1024
   MySql.Data.MySqlClient.Driver.Open() +22
   MySql.Data.MySqlClient.Driver.Create(MySqlConnectionStringBuilder settings) +239
   MySql.Data.MySqlClient.MySqlPool.GetPooledConnection() +287
   MySql.Data.MySqlClient.MySqlPool.TryToGetDriver() +93
   MySql.Data.MySqlClient.MySqlPool.GetConnection() +65
   MySql.Data.MySqlClient.MySqlConnection.Open() +631
   KKC.WebToiminnot.Tietokanta.DataControl.OpenConnection() +329
   KKC.WebToiminnot.Tietokanta.DataControl.GetDataSet(String sql) +31
   KKC.WebToiminnot.Tietokanta.DataControl.GetDataTable(String sql) +8
   KKC.WebToiminnot.GAL.Tietokanta.Base.KuvaDBBase.HaeKentallaGalleriaId(List`1 hakuArvot, String orderBy) +576
   KKC.WebToiminnot.GAL.Logiikka.Base.KuvaLogiikkaBase.HaeKentallaGalleriaId(List`1 hakulista, String orderBy) +19
   KKC.WebToiminnot.GAL.Logiikka.Base.KuvaLogiikkaBase.HaeKentallaGalleriaId(Nullable`1 hakuGalleriaId, String orderBy) +69

[TargetInvocationException: Exception has been thrown by the target of an invocation.]
   System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) +0
   System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) +168
   System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +105
   System.Web.UI.WebControls.ObjectDataSourceView.InvokeMethod(ObjectDataSourceMethod method, Boolean disposeInstance, Object& instance) +682
   System.Web.UI.WebControls.ObjectDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments) +1661
   System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +22
   System.Web.UI.WebControls.DataBoundControl.PerformSelect() +151
   System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +76
   System.Web.UI.WebControls.GridView.DataBind() +10
   System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +114
   System.Web.UI.WebControls.CompositeDataBoundControl.CreateChildControls() +76
   System.Web.UI.Control.EnsureChildControls() +97
   System.Web.UI.WebControls.CompositeDataBoundControl.get_Controls() +16
   KKC.Kirjasto.Web.FindControlRecursive(Control root, String id) in C:\TFS\KKC\KKCIntra\KKC.Kirjasto\kirjasto\Web.cs:535
   KKC.Kirjasto.Web.FindControlRecursive(Control root, String id) in C:\TFS\KKC\KKCIntra\KKC.Kirjasto\kirjasto\Web.cs:537
   KKC.Kirjasto.Web.FindControlRecursive(Control root, String id) in C:\TFS\KKC\KKCIntra\KKC.Kirjasto\kirjasto\Web.cs:537
   KKC.Kirjasto.Web.FindControlRecursive(Control root, String id) in C:\TFS\KKC\KKCIntra\KKC.Kirjasto\kirjasto\Web.cs:537
   KKC.Kirjasto.Web.FindControlRecursive(Control root, String id) in C:\TFS\KKC\KKCIntra\KKC.Kirjasto\kirjasto\Web.cs:537
   KKC.Kirjasto.Web.FindControlRecursive(Control root, String id) in C:\TFS\KKC\KKCIntra\KKC.Kirjasto\kirjasto\Web.cs:537
   KKC.Kirjasto.Web.FindControlRecursive(Control root, String id) in C:\TFS\KKC\KKCIntra\KKC.Kirjasto\kirjasto\Web.cs:537
   KKC.KKCIntra.SEO.Optimoi(String otsikko, String kuvaus, String avainsanat) in C:\TFS\KKC\KKCIntra\KKC.KKCIntra\App_code\INTS\SEO.cs:117
   kuvat_tyo.Page_Load(Object sender, EventArgs e) in c:\www\www.kauppakartano.com\kuvat-tyo.aspx.cs:13
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +52
   System.Web.UI.Control.OnLoad(EventArgs e) +97
   System.Web.UI.Control.LoadRecursive() +61
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +693


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