“/”应用程序中的服务器错误。

Unable to connect to any of the specified MySQL hosts.

说明: 执行当前 Web 请求期间,出现未经处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。

异常详细信息: MySql.Data.MySqlClient.MySqlException: Unable to connect to any of the specified MySQL hosts.

源错误:

执行当前 Web 请求期间生成了未经处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。

堆栈跟踪:


[MySqlException (0x80004005): Unable to connect to any of the specified MySQL hosts.]
   MySql.Data.MySqlClient.NativeDriver.Open() +1229
   MySql.Data.MySqlClient.Driver.Open() +22
   MySql.Data.MySqlClient.Driver.Create(MySqlConnectionStringBuilder settings) +218
   MySql.Data.MySqlClient.MySqlPool.GetPooledConnection() +287
   MySql.Data.MySqlClient.MySqlPool.TryToGetDriver() +93
   MySql.Data.MySqlClient.MySqlPool.GetConnection() +65
   MySql.Data.MySqlClient.MySqlConnection.Open() +566
   ISS.Dapper.ORM.<QueryImpl>d__11`1.MoveNext() +920
   System.Collections.Generic.List`1..ctor(IEnumerable`1 collection) +387
   System.Linq.Enumerable.ToList(IEnumerable`1 source) +58
   ISS.Dapper.ORM.SqlMapper.Query(IDbConnection cnn, String sql, Object param, IDbTransaction transaction, Boolean buffered, Nullable`1 commandTimeout, Nullable`1 commandType) +761
   ISS.Dapper.ORM.DapperImplementor.GetList(IDbConnection connection, IClassMapper classMap, IPredicate predicate, IList`1 sort, IDbTransaction transaction, Nullable`1 commandTimeout, Boolean buffered) +773
   ISS.Dapper.ORM.DapperImplementor.GetList(IDbConnection connection, Object predicate, IList`1 sort, IDbTransaction transaction, Nullable`1 commandTimeout, Boolean buffered) +259
   ISS.Dapper.ORM.DapperExtensions.GetList(IDbConnection connection, Object predicate, IList`1 sort, IDbTransaction transaction, Nullable`1 commandTimeout, Boolean buffered) +151
   ISS.Dapper.ORM.<>c__DisplayClasse.<GetEntityList>b__d(IDbConnection conn) +159
   ISS.Dapper.ORM.DapperHelper.CreateConnection(Action`1 Action) +326
   ISS.Dapper.ORM.MD_Base`1.GetEntityList(Object predicate, List`1 sort) +232
   ISS.Product.Utility.SysConfig.MD_SysConfig.GetList() +618
   ISS.Product.Utility.SysConfig.MD_SysConfig.<GetListByCache>b__4() +36
   ISS.Product.Utility.Cache.DefaultCacheStrategy.Get(String name, Func`1 Func) +111
   ISS.Product.Utility.SysConfig.MD_SysConfig.GetListByCache() +197
   ISS.Product.Utility.SysConfig.MD_SysConfig.GetValue(String Identifier, String defaultValue) +44
   Utility.Configuration.Configuration.GetValue(String Identifier, String defaultValue) in D:\ISSTravel\产品库\野三坡\YeSanPoTravel\Utility\Configuration\Configuration.cs:97
   Utility.Configuration.ConfigFile.AppConfig..cctor() in D:\ISSTravel\产品库\野三坡\YeSanPoTravel\Utility\Configuration\ConfigFile\AppConfig.cs:171

[TypeInitializationException: “Utility.Configuration.ConfigFile.AppConfig”的类型初始值设定项引发异常。]
   Utility.Configuration.ConfigFile.AppConfig.get_IsRedirectErrorPage() in D:\ISSTravel\产品库\野三坡\YeSanPoTravel\Utility\Configuration\ConfigFile\AppConfig.cs:342
   WebSite.ExceptionFilterAttribute.OnException(ExceptionContext filterContext) in D:\ISSTravel\产品库\野三坡\YeSanPoTravel\WebSite\App_Start\FilterConfig.cs:46
   System.Web.Mvc.ControllerActionInvoker.InvokeExceptionFilters(ControllerContext controllerContext, IList`1 filters, Exception exception) +109
   System.Web.Mvc.Async.<>c__DisplayClass25.<BeginInvokeAction>b__1e(AsyncCallback asyncCallback, Object asyncState) +423
   System.Web.Mvc.Async.WrappedAsyncResult`1.Begin(AsyncCallback callback, Object state, Int32 timeout) +129
   System.Web.Mvc.Async.AsyncControllerActionInvoker.BeginInvokeAction(ControllerContext controllerContext, String actionName, AsyncCallback callback, Object state) +302
   System.Web.Mvc.<>c__DisplayClass1d.<BeginExecuteCore>b__17(AsyncCallback asyncCallback, Object asyncState) +30
   System.Web.Mvc.Async.WrappedAsyncResult`1.Begin(AsyncCallback callback, Object state, Int32 timeout) +129
   System.Web.Mvc.Controller.BeginExecuteCore(AsyncCallback callback, Object state) +338
   System.Web.Mvc.Async.WrappedAsyncResult`1.Begin(AsyncCallback callback, Object state, Int32 timeout) +129
   System.Web.Mvc.Controller.BeginExecute(RequestContext requestContext, AsyncCallback callback, Object state) +316
   System.Web.Mvc.Controller.System.Web.Mvc.Async.IAsyncController.BeginExecute(RequestContext requestContext, AsyncCallback callback, Object state) +15
   System.Web.Mvc.<>c__DisplayClass8.<BeginProcessRequest>b__2(AsyncCallback asyncCallback, Object asyncState) +71
   System.Web.Mvc.Async.WrappedAsyncResult`1.Begin(AsyncCallback callback, Object state, Int32 timeout) +129
   System.Web.Mvc.MvcHandler.BeginProcessRequest(HttpContextBase httpContext, AsyncCallback callback, Object state) +251
   System.Web.Mvc.MvcHandler.BeginProcessRequest(HttpContext httpContext, AsyncCallback callback, Object state) +48
   System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData) +16
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +103
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +48
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +159


版本信息: Microsoft .NET Framework 版本:4.0.30319; ASP.NET 版本:4.7.3535.0