An error occurred while starting the application.

TimeoutException: A timeout occurred after 30000ms selecting a server using CompositeServerSelector{ Selectors = MongoDB.Driver.MongoClient+AreSessionsSupportedServerSelector, LatencyLimitingServerSelector{ AllowedLatencyRange = 00:00:00.0150000 }, OperationsCountServerSelector }. Client view of cluster state is { ClusterId : "1", Type : "Unknown", State : "Disconnected", Servers : [{ ServerId: "{ ClusterId : 1, EndPoint : "Unspecified/localhost:27050" }", EndPoint: "Unspecified/localhost:27050", ReasonChanged: "Heartbeat", State: "Disconnected", ServerVersion: , TopologyVersion: , Type: "Unknown", HeartbeatException: "MongoDB.Driver.MongoConnectionException: An exception occurred while opening a connection to the server.
---> System.Net.Internals.SocketExceptionFactory+ExtendedSocketException (10061): No connection could be made because the target machine actively refused it. [::1]:27050
at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
at System.Net.Sockets.Socket.Connect(EndPoint remoteEP)
at MongoDB.Driver.Core.Connections.TcpStreamFactory.Connect(Socket socket, EndPoint endPoint, CancellationToken cancellationToken)
at MongoDB.Driver.Core.Connections.TcpStreamFactory.CreateStream(EndPoint endPoint, CancellationToken cancellationToken)
at MongoDB.Driver.Core.Connections.BinaryConnection.OpenHelper(CancellationToken cancellationToken)
--- End of inner exception stack trace ---
at MongoDB.Driver.Core.Connections.BinaryConnection.OpenHelper(CancellationToken cancellationToken)
at MongoDB.Driver.Core.Connections.BinaryConnection.Open(CancellationToken cancellationToken)
at MongoDB.Driver.Core.Servers.ServerMonitor.InitializeConnection(CancellationToken cancellationToken)
at MongoDB.Driver.Core.Servers.ServerMonitor.Heartbeat(CancellationToken cancellationToken)", LastHeartbeatTimestamp: "2024-06-02T23:42:51.1801857Z", LastUpdateTimestamp: "2024-06-02T23:42:51.1801866Z" }] }.

MongoDB.Driver.Core.Clusters.Cluster.ThrowTimeoutException(IServerSelector selector, ClusterDescription description)

DependencyResolutionException: An exception was thrown while invoking the constructor 'Void .ctor(AppBaseStack.MongoStack.IBaseRepoFactory`1[AppCommon.AppSettingData], AppBaseStack.MongoStack.RepoMetaData)' on type 'MutblRepo`1'.

Autofac.Core.Activators.Reflection.BoundConstructor.Instantiate()

DependencyResolutionException: An exception was thrown while activating AppBaseStack.MongoStack.MutblRepo`1[[AppCommon.AppSettingData, AppCommonExt, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].

Autofac.Core.Resolving.Middleware.ActivatorErrorHandlingMiddleware.Execute(ResolveRequestContext context, Action<ResolveRequestContext> next)

RethrowException: rtyj4r6ujk56uk- public static void Main(string[] args) - : An exception was thrown while activating AppBaseStack.MongoStack.MutblRepo`1[[AppCommon.AppSettingData, AppCommonExt, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]. -
-- Method: Void Execute(Autofac.Core.Resolving.Pipeline.ResolveRequestContext, System.Action`1[Autofac.Core.Resolving.Pipeline.ResolveRequestContext])
-- Method: Void <BuildPipeline>b__1(Autofac.Core.Resolving.Pipeline.ResolveRequestContext)
-- Method: Void Invoke(Autofac.Core.Resolving.Pipeline.ResolveRequestContext)
-- Method: Void Execute(Autofac.Core.Resolving.Pipeline.ResolveRequestContext, System.Action`1[Autofac.Core.Resolving.Pipeline.ResolveRequestContext])
-- Method: Void <BuildPipeline>b__1(Autofac.Core.Resolving.Pipeline.ResolveRequestContext)
-- Method: Void Execute(Autofac.Core.Resolving.Pipeline.ResolveRequestContext, System.Action`1[Autofac.Core.Resolving.Pipeline.ResolveRequestContext])
-- Method: Void <BuildPipeline>b__1(Autofac.Core.Resolving.Pipeline.ResolveRequestContext)
-- Method: Void <BuildPipeline>b__1(Autofac.Core.Resolving.Pipeline.ResolveRequestContext)
-- Method: Void Execute(Autofac.Core.Resolving.Pipeline.ResolveRequestContext, System.Action`1[Autofac.Core.Resolving.Pipeline.ResolveRequestContext])
-- Method: Void <BuildPipeline>b__1(Autofac.Core.Resolving.Pipeline.ResolveRequestContext)
-- Method: Void Invoke(Autofac.Core.Resolving.Pipeline.ResolveRequestContext)
-- Method: Void InvokePipeline(Autofac.ResolveRequest, Autofac.Core.Resolving.Pipeline.DefaultResolveRequestContext)
-- Method: System.Object GetOrCreateInstance(Autofac.Core.ISharingLifetimeScope, Autofac.ResolveRequest)
-- Method: System.Object ExecuteOperation(Autofac.ResolveRequest)
-- Method: System.Object Execute(Autofac.ResolveRequest)
-- Method: System.Object ResolveComponent(Autofac.ResolveRequest)
-- Method: Boolean TryResolveService(Autofac.IComponentContext, Autofac.Core.Service, System.Collections.Generic.IEnumerable`1[Autofac.Core.Parameter], System.Object ByRef)
-- Method: System.Object ResolveService(Autofac.IComponentContext, Autofac.Core.Service, System.Collections.Generic.IEnumerable`1[Autofac.Core.Parameter])
-- Method: System.Object Resolve(Autofac.IComponentContext, System.Type, System.Collections.Generic.IEnumerable`1[Autofac.Core.Parameter])
-- Method: TService Resolve[TService](Autofac.IComponentContext, System.Collections.Generic.IEnumerable`1[Autofac.Core.Parameter])
-- Method: TService Resolve[TService](Autofac.IComponentContext, Autofac.Core.Parameter[])
-- Line: 35 - Method: AppCommon.AppSettingData GetAppSettingData() - FileName: D:\Data\dev\Products\SkymemRex\Skymem\CommonLib\AppCommonExt\AppCommonExt\AppSetting\AppSettingRepoHelper.cs
-- Line: 31 - Method: Void FillDataRawFoldersPath(System.String) - FileName: D:\Data\dev\Products\SkymemRex\Skymem\CommonLib\AppCommonExt\AppCommonExt\Util\FileDataService\FileDataFoldersPath.cs
-- Line: 22 - Method: Void Init(System.String) - FileName: D:\Data\dev\Products\SkymemRex\Skymem\CommonLib\AppCommonExt\AppCommonExt\Util\FileDataService\FileDataFoldersPath.cs
-- Line: 294 - Method: Void Configure(Microsoft.AspNetCore.Builder.IApplicationBuilder, Microsoft.AspNetCore.Hosting.IWebHostEnvironment) - FileName: D:\Data\dev\Products\SkymemRex\Skymem\EmailHuntNT\src\EmailHuntNT\Startup.cs
-- Method: System.Object InvokeMethod(System.Object, Void**, System.Signature, Boolean)
-- Method: System.Object Invoke(System.Object, IntPtr*, System.Reflection.BindingFlags)
-- Method: System.Object Invoke(System.Object, System.Reflection.BindingFlags, System.Reflection.Binder, System.Object[], System.Globalization.CultureInfo)
-- Method: Void Invoke(System.Object, Microsoft.AspNetCore.Builder.IApplicationBuilder)
-- Method: Void MoveNext()
-- Method: Void Throw()
-- Method: Void ThrowForNonSuccess(System.Threading.Tasks.Task)
-- Method: Void HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task)
-- Method: Void MoveNext()
-- Method: Void Throw()
-- Method: Void ThrowForNonSuccess(System.Threading.Tasks.Task)
-- Method: Void HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task)
-- Method: Void MoveNext()
-- Method: Void Throw()
-- Method: Void MoveNext()
-- Method: Void Throw()
-- Method: Void ThrowForNonSuccess(System.Threading.Tasks.Task)
-- Method: Void HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task)
-- Method: Void Run(Microsoft.Extensions.Hosting.IHost)
-- Line: 17 - Method: Void Main(System.String[]) - FileName: D:\Data\dev\Products\SkymemRex\Skymem\EmailHuntNT\src\EmailHuntNT\Program.cs

EmailHuntNT.Program.Main(string[] args) in Program.cs, line 25