Server Error in '/' Application.

Exception of type 'System.Exception' was thrown.

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: System.Exception: Exception of type 'System.Exception' was thrown.

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:


[Exception: Exception of type 'System.Exception' was thrown.]
   MySql.Data.MySqlClient.NativeDriver.Open() +216

[MySqlException (0x80004005): Unable to connect to any of the specified MySQL hosts.]
   MySql.Data.MySqlClient.NativeDriver.Open() +265
   MySql.Data.MySqlClient.Driver.Create(MySqlConnectionStringBuilder settings) +87
   MySql.Data.MySqlClient.MySqlPool.GetPooledConnection() +23
   MySql.Data.MySqlClient.MySqlPool.GetConnection() +163
   MySql.Data.MySqlClient.MySqlConnection.Open() +359
   ZSO.Component.DBProvider.MySqlHelper.PrepareCommand(MySqlConnection conn, MySqlTransaction trans, MySqlCommand cmd, String sqlText, CommandType cmdType, MySqlParameter[] parms) in E:\ZSO\Code\ZSO_Site\ZSO.Component\DBProvider\MySqlHelper.cs:265
   ZSO.Component.DBProvider.MySqlHelper.DataReader(String sqlText, CommandType cmdType, MySqlParameter[] parms) in E:\ZSO\Code\ZSO_Site\ZSO.Component\DBProvider\MySqlHelper.cs:100
   ZSO.Component.Entity.MYSQLEntity.GetDataSingleList(Int32 pageSize, String where, String orderBy, String customColumns) in E:\ZSO\Code\ZSO_Site\ZSO.Component\Entity\MYSQLEntity.cs:347
   ZSO_CMS.Platform.MySqlDAL.LanguageDAL.GetSingleList() in E:\ZSO\Code\ZSO_Site\ZSO_CMS.Platform\MySqlDAL\LanguageDAL.cs:28
   ZSO_CMS.Platform.BLL.LanguageBLL.GetSingleList() in E:\ZSO\Code\ZSO_Site\ZSO_CMS.Platform\BLL\LanguageBLL.cs:54
   ZSO_CMS.Platform.BLL.LanguageBLL.GetLanguageDefault() in E:\ZSO\Code\ZSO_Site\ZSO_CMS.Platform\BLL\LanguageBLL.cs:112
   ZSO_CMS.Platform.Common.GlobalHelper..cctor() in E:\ZSO\Code\ZSO_Site\ZSO_CMS.Platform\Common\GlobalHelper.cs:21

[TypeInitializationException: The type initializer for 'ZSO_CMS.Platform.Common.GlobalHelper' threw an exception.]
   ZSO_CMS.Web.Framework.Controllers.BaseWebController.Initialize(RequestContext requestContext) in E:\ZSO\Code\ZSO_Site\ZSO_CMS.Web.Framework\Controllers\BaseWebController.cs:37
   System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext) +75
   System.Web.Mvc.ControllerBase.System.Web.Mvc.IController.Execute(RequestContext requestContext) +10
   System.Web.Mvc.<>c__DisplayClassb.b__5() +37
   System.Web.Mvc.Async.<>c__DisplayClass1.b__0() +21
   System.Web.Mvc.Async.<>c__DisplayClass8`1.b__7(IAsyncResult _) +12
   System.Web.Mvc.Async.WrappedAsyncResult`1.End() +55
   System.Web.Mvc.<>c__DisplayClasse.b__d() +31
   System.Web.Mvc.SecurityUtil.b__0(Action f) +7
   System.Web.Mvc.SecurityUtil.ProcessInApplicationTrust(Action action) +23
   System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +59
   System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result) +9
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +9048909
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +184


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