Server Error in '/' Application.

No connection could be made because the target machine actively refused it 127.0.0.1:3306

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.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it 127.0.0.1:3306

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:


[SocketException (0x274d): No connection could be made because the target machine actively refused it 127.0.0.1:3306]
   System.Net.Sockets.Socket.InternalEndConnect(IAsyncResult asyncResult) +6689119
   System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult) +88
   System.Net.Sockets.TcpClient.EndConnect(IAsyncResult asyncResult) +56
   System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization) +57

[AggregateException: One or more errors occurred.]
   System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions) +4316222
   System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken) +12781669
   MySql.Data.Common.StreamCreator.GetTcpStream(MySqlConnectionStringBuilder settings) +88
   MySql.Data.Common.StreamCreator.GetStream(MySqlConnectionStringBuilder settings) +36
   MySql.Data.MySqlClient.NativeDriver.Open() +55

[MySqlException (0x80004005): Unable to connect to any of the specified MySQL hosts.]
   MySql.Data.MySqlClient.NativeDriver.Open() +151
   MySql.Data.MySqlClient.Driver.Open() +50
   MySql.Data.MySqlClient.Driver.Create(MySqlConnectionStringBuilder settings) +239
   MySql.Data.MySqlClient.MySqlConnection.Open() +631
   OpenAccessRuntime.Intellitrace.OpenConnection(DbConnection connection, String connectionString, String id) +85
   Telerik.OpenAccess.RT.Adonet2Generic.Impl.DBDriver.connect(ConnectionString connectionString, PropertySet driverProps, ConnectionPoolType poolType, LogEventStore pes) +409

[SQLException: Unable to connect to any of the specified MySQL hosts.]
   Telerik.OpenAccess.RT.Adonet2Generic.Impl.DBDriver.connect(ConnectionString connectionString, PropertySet driverProps, ConnectionPoolType poolType, LogEventStore pes) +628
   OpenAccessRuntime.Relational.sql.SqlDriver.InitializeFor(ConnectionString connectionString, Boolean noConnect, PropertySet props, DBDriver& driver, Connection& conn, ConnectionPoolType poolType) +281

[DataStoreException: Unable to connect to any of the specified MySQL hosts. Telerik.OpenAccess.RT.sql.SQLException: Unable to connect to any of the specified MySQL hosts. ---> MySql.Data.MySqlClient.MySqlException: Unable to connect to any of the specified MySQL hosts. ---> System.AggregateException: One or more errors occurred. ---> System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it 127.0.0.1:3306
   at System.Net.Sockets.Socket.InternalEndConnect(IAsyncResult asyncResult)
   at System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult)
   at System.Net.Sockets.TcpClient.EndConnect(IAsyncResult asyncResult)
   at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization)
   --- End of inner exception stack trace ---
   at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
   at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
   at MySql.Data.Common.StreamCreator.GetTcpStream(MySqlConnectionStringBuilder settings)
   at MySql.Data.Common.StreamCreator.GetStream(MySqlConnectionStringBuilder settings)
   at MySql.Data.MySqlClient.NativeDriver.Open()
   --- End of inner exception stack trace ---
   at MySql.Data.MySqlClient.NativeDriver.Open()
   at MySql.Data.MySqlClient.Driver.Open()
   at MySql.Data.MySqlClient.Driver.Create(MySqlConnectionStringBuilder settings)
   at MySql.Data.MySqlClient.MySqlConnection.Open()
   at OpenAccessRuntime.Intellitrace.OpenConnection(DbConnection connection, String connectionString, String id)
   at Telerik.OpenAccess.RT.Adonet2Generic.Impl.DBDriver.connect(ConnectionString connectionString, PropertySet driverProps, ConnectionPoolType poolType, LogEventStore pes)
   --- End of inner exception stack trace ---
   at Telerik.OpenAccess.RT.Adonet2Generic.Impl.DBDriver.connect(ConnectionString connectionString, PropertySet driverProps, ConnectionPoolType poolType, LogEventStore pes)
   at OpenAccessRuntime.Relational.sql.SqlDriver.InitializeFor(ConnectionString connectionString, Boolean noConnect, PropertySet props, DBDriver& driver, Connection& conn, ConnectionPoolType poolType)]
   OpenAccessRuntime.ExceptionWrapper.Throw() +7
   OpenAccessRuntime.storagemanager.StorageManagerFactoryBuilder.createSmfForURL() +298
   OpenAccessRuntime.storagemanager.StorageManagerFactoryBuilder.createStorageManagerFactory() +198
   OpenAccessRuntime.DataObjects.PersistenceManagerFactoryImp.createStorageManagerFactory() +410
   OpenAccessRuntime.DataObjects.PersistenceManagerFactoryBase.init() +689
   OpenAccessRuntime.DataObjects.PersistenceManagerFactoryImp.init() +36
   OpenAccessRuntime.DataObjects.BootstrapPMF.getPersistenceManagerFactory(PropertySet props) +233
   OpenAccessRuntime.Helper.getPersistenceManagerFactory(PropertySet props) +215
   OpenAccessRuntime.DatabaseAdapter.AssertPersistenceManagerFactory(String usr, String password, Boolean open) +1013
   OpenAccessRuntime.DatabaseAdapter.GetObjectScope(TransactionProvider provider) +36
   Telerik.OpenAccess.Database.GetObjectScope(TransactionProvider provider) +11
   Telerik.OpenAccess.OpenAccessContextBase.GetScope() +42
   Telerik.OpenAccess.OpenAccessContext.GetAllCore() +28
   Telerik.OpenAccess.OpenAccessContext.GetAll() +48
   ApplicationLib.Repositories.AppLanguageRepository.Get(String IdLanguage) in C:\WORK\ZENN\Websites\amtoolsgroup\ApplicationLib\Repositories\AppLanguageRepository.cs:29
   Application.HttpModules.AppLanguage.OnBeginRequest(Object o, EventArgs args) in C:\WORK\ZENN\Websites\amtoolsgroup\Application\Application\Others\Language.cs:39
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +144
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +50
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +73


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