Server Error in '/' Application.

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

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:3307

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:3307]
   System.Net.Sockets.Socket.InternalEndConnect(IAsyncResult asyncResult) +8002496
   System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult) +95
   System.Net.Sockets.TcpClient.EndConnect(IAsyncResult asyncResult) +68
   System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization) +83

[MySqlException (0x80004005): Unable to connect to any of the specified MySQL hosts.]
   MySql.Data.MySqlClient.<>c.<OpenAsync>b__38_0(Exception ex) +121
   System.AggregateException.Handle(Func`2 predicate) +76
   MySql.Data.MySqlClient.<OpenAsync>d__38.MoveNext() +5695
   System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() +32
   MySql.Data.MySqlClient.<OpenAsync>d__76.MoveNext() +436
   System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() +32
   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +62
   MySql.Data.MySqlClient.<CreateAsync>d__74.MoveNext() +730
   System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() +32
   MySql.Data.MySqlClient.<CreateAsync>d__74.MoveNext() +1064
   System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() +32
   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +62
   MySql.Data.MySqlClient.<OpenAsync>d__91.MoveNext() +4639
   System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() +32
   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +62
   MySql.Data.MySqlClient.MySqlConnection.Open() +39
   Dapper.SqlMapper.QueryRowImpl(IDbConnection cnn, Row row, CommandDefinition& command, Type effectiveType) +408
   Dapper.SqlMapper.QueryFirst(IDbConnection cnn, String sql, Object param, IDbTransaction transaction, Nullable`1 commandTimeout, Nullable`1 commandType) +207
   EnyaCMS2018.SettingsManager.GetSettingHindi() in C:\Projects\Publicsoft Internet Apps\Nishamadhulika-Site\Models\SettingsManager.cs:22
   EnyaCMS2018.MvcApplication.ReloadPlaylist() in C:\Projects\Publicsoft Internet Apps\Nishamadhulika-Site\Global.asax.cs:34
   EnyaCMS2018.MvcApplication.LoadApplicationData() in C:\Projects\Publicsoft Internet Apps\Nishamadhulika-Site\Global.asax.cs:61

[HttpException (0x80004005): Unable to connect to any of the specified MySQL hosts.]
   System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +546
   System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +171
   System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +173
   System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +255
   System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +347

[HttpException (0x80004005): Unable to connect to any of the specified MySQL hosts.]
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +552
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +122
   System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +737


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