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:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[MySqlException (0x80004005): Unable to connect to any of the specified MySQL hosts.]
   MySql.Data.MySqlClient.NativeDriver.Open() +1158
   MySql.Data.MySqlClient.Driver.Open() +36
   MySql.Data.MySqlClient.Driver.Create(MySqlConnectionStringBuilder settings) +335
   MySql.Data.MySqlClient.MySqlPool.GetPooledConnection() +318
   MySql.Data.MySqlClient.MySqlPool.TryToGetDriver() +148
   MySql.Data.MySqlClient.MySqlPool.GetConnection() +57
   MySql.Data.MySqlClient.MySqlConnection.Open() +1285
   Utils.DB.DBUtilV2.Open() in C:\work\CommonUtils\Utils\DB\DBUtilV2.cs:72

[Exception: Error connecting to MySql HugeDomains]
   Utils.DB.DBUtilV2.Open() in C:\work\CommonUtils\Utils\DB\DBUtilV2.cs:84
   Utils.DB.DBUtilV2.GetConnection() in C:\work\CommonUtils\Utils\DB\DBUtilV2.cs:55
   Utils.DB.DBUtilV2.Execute(CommandStrategy`1 strategy, String commandText, QueryOptions opts, Object[] parameters) in C:\work\CommonUtils\Utils\DB\DBUtilV2.cs:126

[Exception: Error in command: select domain_name
from product p
where qtyinstock = 0
and dateRemoved is NULL

attempts:0
]
   Utils.DB.DBUtilV2.Execute(CommandStrategy`1 strategy, String commandText, QueryOptions opts, Object[] parameters) in C:\work\CommonUtils\Utils\DB\DBUtilV2.cs:175
   Utils.DB.DBUtilV2.SelectQuery(String query, String tablename, DataSet ds, Object[] parameters) in C:\work\CommonUtils\Utils\DB\DBUtilV2.cs:349
   Utils.DB.DBUtilV2.SelectQuery(String query, String tablename) in C:\work\CommonUtils\Utils\DB\DBUtilV2.cs:344
   TC.HugeDomains.HdRedirect.Service.Data.DataObj.LoadData() in C:\gitlab-runner\builds\5ff089b7\0\Products.HugeDomains\TC.HugeDomains.HdRedirect\HugeDomainsRedirector.Service\Data\DataObj.cs:24
   TC.HugeDomains.HdRedirect.HttpHandler.HDRedirector.LoadData() in C:\gitlab-runner\builds\5ff089b7\0\Products.HugeDomains\TC.HugeDomains.HdRedirect\HugeDomainsRedirector\HDRedirector.cs:149
   TC.HugeDomains.HdRedirect.HttpHandler.HDRedirector..cctor() in C:\gitlab-runner\builds\5ff089b7\0\Products.HugeDomains\TC.HugeDomains.HdRedirect\HugeDomainsRedirector\HDRedirector.cs:64

[TypeInitializationException: The type initializer for 'TC.HugeDomains.HdRedirect.HttpHandler.HDRedirector' threw an exception.]
   TC.HugeDomains.HdRedirect.HttpHandler.HDRedirector..ctor() +0

[TargetInvocationException: Exception has been thrown by the target of an invocation.]
   System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck) +0
   System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) +138
   System.Activator.CreateInstance(Type type, Boolean nonPublic) +105
   System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark) +1481
   System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) +191
   System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture) +27
   System.Web.HttpRuntime.CreateNonPublicInstance(Type type, Object[] args) +80
   System.Web.Configuration.HandlerFactoryCache..ctor(String type) +53
   System.Web.HttpApplication.GetFactory(String type) +98
   System.Web.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +349
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +146


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