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.EndConnect(IAsyncResult asyncResult) +1567003
   MySql.Data.Common.StreamCreator.CreateSocketStream(IPAddress ip, Boolean unix) +266
   MySql.Data.Common.StreamCreator.GetStream(UInt32 timeout) +500
   MySql.Data.MySqlClient.NativeDriver.Open() +265

[MySqlException (0x80004005): Unable to connect to any of the specified MySQL hosts.]
   MySql.Data.MySqlClient.NativeDriver.Open() +324
   MySql.Data.MySqlClient.Driver.Open() +69
   MySql.Data.MySqlClient.Driver.Create(MySqlConnectionStringBuilder settings) +99
   MySql.Data.MySqlClient.MySqlPool.CreateNewPooledConnection() +11
   MySql.Data.MySqlClient.MySqlPool.GetPooledConnection() +257
   MySql.Data.MySqlClient.MySqlPool.TryToGetDriver() +117
   MySql.Data.MySqlClient.MySqlPool.GetConnection() +113
   MySql.Data.MySqlClient.MySqlConnection.Open() +307
   ngwDBVehiculos.TDBVehiculos.GetClasesCarrocerias(@MetaTDBVehiculos Self, String Clase) +947
   ngwucMenuVehicles.TngwucMenuVehicles.Page_Load(Object sender, EventArgs e) +1798
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +50
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627


Version Information: Microsoft .NET Framework Version:2.0.50727.9061; ASP.NET Version:2.0.50727.9062