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:


Line 316:
Line 317:            ' Apertura della connessione
Line 318:            conn.Open()
Line 319:
Line 320:            ' Creazione del comando

Source File: C:\inetpub\wwwroot\Root\App_Code\VBCode\CMD.vb    Line: 318

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) +982
   System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult) +92
   System.Net.Sockets.TcpClient.EndConnect(IAsyncResult asyncResult) +67
   System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization) +83

[AggregateException: One or more errors occurred.]
   System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions) +4840936
   System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken) +14610989
   MySql.Data.Common.StreamCreator.GetTcpStream(MySqlConnectionStringBuilder settings) +106
   MySql.Data.MySqlClient.NativeDriver.Open() +86

[MySqlException (0x80004005): Unable to connect to any of the specified MySQL hosts.]
   MySql.Data.MySqlClient.NativeDriver.Open() +1562
   MySql.Data.MySqlClient.Driver.Open() +60
   MySql.Data.MySqlClient.Driver.Create(MySqlConnectionStringBuilder settings) +331
   MySql.Data.MySqlClient.MySqlPool.CreateNewPooledConnection() +18
   MySql.Data.MySqlClient.MySqlPool.GetPooledConnection() +290
   MySql.Data.MySqlClient.MySqlPool.TryToGetDriver() +151
   MySql.Data.MySqlClient.MySqlPool.GetConnection() +57
   MySql.Data.MySqlClient.MySqlConnection.Open() +1121
   CMD.CMDReader(String querystring) in C:\inetpub\wwwroot\Root\App_Code\VBCode\CMD.vb:318
   DAL.GetReaderfromQuery(String querystring) in C:\inetpub\wwwroot\Root\App_Code\VBCode\DAL.vb:1408
   BLG.GetdataTableNewPro(Int32 limit) in C:\inetpub\wwwroot\Root\App_Code\VBCode\BLG.vb:1298
   Root_Default.Page_Load(Object sender, EventArgs e) in c:\inetpub\wwwroot\Root\Default.aspx.cs:29
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +154
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4082


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