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() +4643
   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) +388
   Dapper.SqlMapper.QueryFirst(IDbConnection cnn, String sql, Object param, IDbTransaction transaction, Nullable`1 commandTimeout, Nullable`1 commandType) +207
   EnyaCMS2018.SettingsManager.GetSetting() in C:\Projects\Publicsoft Internet Apps\Nishamadhulika-Site\Models\SettingsManager.cs:17
   EnyaCMS2018.Controllers.BaseController..ctor() in C:\Projects\Publicsoft Internet Apps\Nishamadhulika-Site\Controllers\BaseController.cs:94

[TargetInvocationException: Exception has been thrown by the target of an invocation.]
   System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck) +0
   System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) +142
   System.Activator.CreateInstance(Type type, Boolean nonPublic) +107
   System.Activator.CreateInstance(Type type) +13
   System.Web.Mvc.DefaultControllerActivator.Create(RequestContext requestContext, Type controllerType) +78

[InvalidOperationException: An error occurred when trying to create a controller of type 'EnyaCMS2018.Controllers.PostController'. Make sure that the controller has a parameterless public constructor.]
   System.Web.Mvc.DefaultControllerActivator.Create(RequestContext requestContext, Type controllerType) +245
   System.Web.Mvc.MvcHandler.ProcessRequestInit(HttpContextBase httpContext, IController& controller, IControllerFactory& factory) +266
   System.Web.Mvc.MvcHandler.BeginProcessRequest(HttpContextBase httpContext, AsyncCallback callback, Object state) +77
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +970
   System.Web.<>c__DisplayClass285_0.<ExecuteStepImpl>b__0() +38
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +11859589
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +158


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