MongoDB.Driver.Core.Clusters.Cluster.ThrowTimeoutException(IServerSelector selector, ClusterDescription description)
Autofac.Core.Activators.Reflection.BoundConstructor.Instantiate()
Autofac.Core.Resolving.Middleware.ActivatorErrorHandlingMiddleware.Execute(ResolveRequestContext context, Action<ResolveRequestContext> next)
EmailHuntNT.Program.Main(string[] args) in Program.cs
, line 25
MongoCollectionPool.cs
MongoCollectionPool.cs
MongoCollectionPool.cs
MongoCollectionPool.cs
RepoRestNative.cs
BaseRepo.cs
BaseRepoFactory.cs
EntityRepository.cs
MutblRepo.cs
System.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" }] }. at MongoDB.Driver.Core.Clusters.Cluster.ThrowTimeoutException(IServerSelector selector, ClusterDescription description) at MongoDB.Driver.Core.Clusters.Cluster.WaitForDescriptionChangedHelper.HandleCompletedTask(Task completedTask) at MongoDB.Driver.Core.Clusters.Cluster.WaitForDescriptionChanged(IServerSelector selector, ClusterDescription description, Task descriptionChangedTask, TimeSpan timeout, CancellationToken cancellationToken) at MongoDB.Driver.Core.Clusters.Cluster.SelectServer(IServerSelector selector, CancellationToken cancellationToken) at MongoDB.Driver.MongoClient.AreSessionsSupportedAfterServerSelection(CancellationToken cancellationToken) at MongoDB.Driver.MongoClient.AreSessionsSupported(CancellationToken cancellationToken) at MongoDB.Driver.MongoClient.StartImplicitSession(CancellationToken cancellationToken) at MongoDB.Driver.OperationExecutor.StartImplicitSession(CancellationToken cancellationToken) at MongoDB.Driver.MongoCollectionImpl`1.UsingImplicitSession[TResult](Func`2 func, CancellationToken cancellationToken) at MongoDB.Driver.MongoCollectionImpl`1.MongoIndexManager.CreateMany(IEnumerable`1 models, CreateManyIndexesOptions options, CancellationToken cancellationToken) at MongoDB.Driver.MongoIndexManagerBase`1.CreateOne(CreateIndexModel`1 model, CreateOneIndexOptions options, CancellationToken cancellationToken) at MongoRepositoryNT.MongoCollectionPool`1.AddOneUniqueIndex(IMongoCollection`1 inCollection, String key) in D:\Data\dev\Products\SkymemRex\Skymem\CommonLib\MongoRepositoryExt\src\MongoRepositoryNT\Base\Pool\MongoCollectionPool.cs:line 297 at MongoRepositoryNT.MongoCollectionPool`1.Init(IMongoCollection`1 inCollection, List`1 index, List`1 uniqueIndex) in D:\Data\dev\Products\SkymemRex\Skymem\CommonLib\MongoRepositoryExt\src\MongoRepositoryNT\Base\Pool\MongoCollectionPool.cs:line 191 at MongoRepositoryNT.MongoCollectionPool`1.Create(IRepoDescData inRepoDescData) in D:\Data\dev\Products\SkymemRex\Skymem\CommonLib\MongoRepositoryExt\src\MongoRepositoryNT\Base\Pool\MongoCollectionPool.cs:line 163 at MongoRepositoryNT.MongoCollectionPool`1.GetOrAdd(IRepoDescData inRepoDescData) in D:\Data\dev\Products\SkymemRex\Skymem\CommonLib\MongoRepositoryExt\src\MongoRepositoryNT\Base\Pool\MongoCollectionPool.cs:line 124 at MongoRepositoryNT.RepoRestNative`1..ctor(IRepoDescData repoDescData) in D:\Data\dev\Products\SkymemRex\Skymem\CommonLib\MongoRepositoryExt\src\MongoRepositoryNT\RestRepo\RepoRestNative.cs:line 69 at RepoLambda.BaseRepo`1..ctor(IRepoDescData repoDescData) in D:\Data\dev\Products\SkymemRex\Skymem\CommonLib\MongoRepositoryExt\src\RepoLambda\Repo\BaseRepo.cs:line 55 at AppBaseStack.MongoStack.BaseRepoFactory`1.GetOrCreateRepo(RepoMetaData repoMetaData) in D:\Data\dev\Products\SkymemRex\Skymem\CommonLib\MongoStackExt\src\MongoStackExt\RepoFactory\BaseRepoFactory.cs:line 67 at AppBaseStack.MongoStack.EntityRepository`1..ctor(IBaseRepoFactory`1 baseRepoFactory, RepoMetaData repoMeta) in D:\Data\dev\Products\SkymemRex\Skymem\CommonLib\MongoStackExt\src\MongoStackExt\Repo\Base\EntityRepository.cs:line 73 at AppBaseStack.MongoStack.MutblRepo`1..ctor(IBaseRepoFactory`1 baseRepoFactory, RepoMetaData repoMeta) in D:\Data\dev\Products\SkymemRex\Skymem\CommonLib\MongoStackExt\src\MongoStackExt\Repo\BaseRepo\MutblRepo.cs:line 46 at lambda_method132(Closure, Object[]) at Autofac.Core.Activators.Reflection.BoundConstructor.Instantiate()
Autofac.Core.DependencyResolutionException: An exception was thrown while invoking the constructor 'Void .ctor(AppBaseStack.MongoStack.IBaseRepoFactory`1[AppCommon.AppSettingData], AppBaseStack.MongoStack.RepoMetaData)' on type 'MutblRepo`1'. ---> System.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" }] }. at MongoDB.Driver.Core.Clusters.Cluster.ThrowTimeoutException(IServerSelector selector, ClusterDescription description) at MongoDB.Driver.Core.Clusters.Cluster.WaitForDescriptionChangedHelper.HandleCompletedTask(Task completedTask) at MongoDB.Driver.Core.Clusters.Cluster.WaitForDescriptionChanged(IServerSelector selector, ClusterDescription description, Task descriptionChangedTask, TimeSpan timeout, CancellationToken cancellationToken) at MongoDB.Driver.Core.Clusters.Cluster.SelectServer(IServerSelector selector, CancellationToken cancellationToken) at MongoDB.Driver.MongoClient.AreSessionsSupportedAfterServerSelection(CancellationToken cancellationToken) at MongoDB.Driver.MongoClient.AreSessionsSupported(CancellationToken cancellationToken) at MongoDB.Driver.MongoClient.StartImplicitSession(CancellationToken cancellationToken) at MongoDB.Driver.OperationExecutor.StartImplicitSession(CancellationToken cancellationToken) at MongoDB.Driver.MongoCollectionImpl`1.UsingImplicitSession[TResult](Func`2 func, CancellationToken cancellationToken) at MongoDB.Driver.MongoCollectionImpl`1.MongoIndexManager.CreateMany(IEnumerable`1 models, CreateManyIndexesOptions options, CancellationToken cancellationToken) at MongoDB.Driver.MongoIndexManagerBase`1.CreateOne(CreateIndexModel`1 model, CreateOneIndexOptions options, CancellationToken cancellationToken) at MongoRepositoryNT.MongoCollectionPool`1.AddOneUniqueIndex(IMongoCollection`1 inCollection, String key) in D:\Data\dev\Products\SkymemRex\Skymem\CommonLib\MongoRepositoryExt\src\MongoRepositoryNT\Base\Pool\MongoCollectionPool.cs:line 297 at MongoRepositoryNT.MongoCollectionPool`1.Init(IMongoCollection`1 inCollection, List`1 index, List`1 uniqueIndex) in D:\Data\dev\Products\SkymemRex\Skymem\CommonLib\MongoRepositoryExt\src\MongoRepositoryNT\Base\Pool\MongoCollectionPool.cs:line 191 at MongoRepositoryNT.MongoCollectionPool`1.Create(IRepoDescData inRepoDescData) in D:\Data\dev\Products\SkymemRex\Skymem\CommonLib\MongoRepositoryExt\src\MongoRepositoryNT\Base\Pool\MongoCollectionPool.cs:line 163 at MongoRepositoryNT.MongoCollectionPool`1.GetOrAdd(IRepoDescData inRepoDescData) in D:\Data\dev\Products\SkymemRex\Skymem\CommonLib\MongoRepositoryExt\src\MongoRepositoryNT\Base\Pool\MongoCollectionPool.cs:line 124 at MongoRepositoryNT.RepoRestNative`1..ctor(IRepoDescData repoDescData) in D:\Data\dev\Products\SkymemRex\Skymem\CommonLib\MongoRepositoryExt\src\MongoRepositoryNT\RestRepo\RepoRestNative.cs:line 69 at RepoLambda.BaseRepo`1..ctor(IRepoDescData repoDescData) in D:\Data\dev\Products\SkymemRex\Skymem\CommonLib\MongoRepositoryExt\src\RepoLambda\Repo\BaseRepo.cs:line 55 at AppBaseStack.MongoStack.BaseRepoFactory`1.GetOrCreateRepo(RepoMetaData repoMetaData) in D:\Data\dev\Products\SkymemRex\Skymem\CommonLib\MongoStackExt\src\MongoStackExt\RepoFactory\BaseRepoFactory.cs:line 67 at AppBaseStack.MongoStack.EntityRepository`1..ctor(IBaseRepoFactory`1 baseRepoFactory, RepoMetaData repoMeta) in D:\Data\dev\Products\SkymemRex\Skymem\CommonLib\MongoStackExt\src\MongoStackExt\Repo\Base\EntityRepository.cs:line 73 at AppBaseStack.MongoStack.MutblRepo`1..ctor(IBaseRepoFactory`1 baseRepoFactory, RepoMetaData repoMeta) in D:\Data\dev\Products\SkymemRex\Skymem\CommonLib\MongoStackExt\src\MongoStackExt\Repo\BaseRepo\MutblRepo.cs:line 46 at lambda_method132(Closure, Object[]) at Autofac.Core.Activators.Reflection.BoundConstructor.Instantiate() --- End of inner exception stack trace --- at Autofac.Core.Activators.Reflection.BoundConstructor.Instantiate() at Autofac.Core.Activators.Reflection.ReflectionActivator.<>c__DisplayClass14_0.<UseSingleConstructorActivation>b__0(ResolveRequestContext ctxt, Action`1 next) at Autofac.Core.Resolving.Middleware.DelegateMiddleware.Execute(ResolveRequestContext context, Action`1 next) at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.<BuildPipeline>b__1(ResolveRequestContext ctxt) at Autofac.Core.Resolving.Middleware.DisposalTrackingMiddleware.Execute(ResolveRequestContext context, Action`1 next) at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.<BuildPipeline>b__1(ResolveRequestContext ctxt) at Autofac.Core.Resolving.Middleware.ActivatorErrorHandlingMiddleware.Execute(ResolveRequestContext context, Action`1 next)
AppSettingRepoHelper.cs
FileDataFoldersPath.cs
FileDataFoldersPath.cs
Startup.cs
Program.cs
Autofac.Core.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.DependencyResolutionException: An exception was thrown while invoking the constructor 'Void .ctor(AppBaseStack.MongoStack.IBaseRepoFactory`1[AppCommon.AppSettingData], AppBaseStack.MongoStack.RepoMetaData)' on type 'MutblRepo`1'. ---> System.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" }] }. at MongoDB.Driver.Core.Clusters.Cluster.ThrowTimeoutException(IServerSelector selector, ClusterDescription description) at MongoDB.Driver.Core.Clusters.Cluster.WaitForDescriptionChangedHelper.HandleCompletedTask(Task completedTask) at MongoDB.Driver.Core.Clusters.Cluster.WaitForDescriptionChanged(IServerSelector selector, ClusterDescription description, Task descriptionChangedTask, TimeSpan timeout, CancellationToken cancellationToken) at MongoDB.Driver.Core.Clusters.Cluster.SelectServer(IServerSelector selector, CancellationToken cancellationToken) at MongoDB.Driver.MongoClient.AreSessionsSupportedAfterServerSelection(CancellationToken cancellationToken) at MongoDB.Driver.MongoClient.AreSessionsSupported(CancellationToken cancellationToken) at MongoDB.Driver.MongoClient.StartImplicitSession(CancellationToken cancellationToken) at MongoDB.Driver.OperationExecutor.StartImplicitSession(CancellationToken cancellationToken) at MongoDB.Driver.MongoCollectionImpl`1.UsingImplicitSession[TResult](Func`2 func, CancellationToken cancellationToken) at MongoDB.Driver.MongoCollectionImpl`1.MongoIndexManager.CreateMany(IEnumerable`1 models, CreateManyIndexesOptions options, CancellationToken cancellationToken) at MongoDB.Driver.MongoIndexManagerBase`1.CreateOne(CreateIndexModel`1 model, CreateOneIndexOptions options, CancellationToken cancellationToken) at MongoRepositoryNT.MongoCollectionPool`1.AddOneUniqueIndex(IMongoCollection`1 inCollection, String key) in D:\Data\dev\Products\SkymemRex\Skymem\CommonLib\MongoRepositoryExt\src\MongoRepositoryNT\Base\Pool\MongoCollectionPool.cs:line 297 at MongoRepositoryNT.MongoCollectionPool`1.Init(IMongoCollection`1 inCollection, List`1 index, List`1 uniqueIndex) in D:\Data\dev\Products\SkymemRex\Skymem\CommonLib\MongoRepositoryExt\src\MongoRepositoryNT\Base\Pool\MongoCollectionPool.cs:line 191 at MongoRepositoryNT.MongoCollectionPool`1.Create(IRepoDescData inRepoDescData) in D:\Data\dev\Products\SkymemRex\Skymem\CommonLib\MongoRepositoryExt\src\MongoRepositoryNT\Base\Pool\MongoCollectionPool.cs:line 163 at MongoRepositoryNT.MongoCollectionPool`1.GetOrAdd(IRepoDescData inRepoDescData) in D:\Data\dev\Products\SkymemRex\Skymem\CommonLib\MongoRepositoryExt\src\MongoRepositoryNT\Base\Pool\MongoCollectionPool.cs:line 124 at MongoRepositoryNT.RepoRestNative`1..ctor(IRepoDescData repoDescData) in D:\Data\dev\Products\SkymemRex\Skymem\CommonLib\MongoRepositoryExt\src\MongoRepositoryNT\RestRepo\RepoRestNative.cs:line 69 at RepoLambda.BaseRepo`1..ctor(IRepoDescData repoDescData) in D:\Data\dev\Products\SkymemRex\Skymem\CommonLib\MongoRepositoryExt\src\RepoLambda\Repo\BaseRepo.cs:line 55 at AppBaseStack.MongoStack.BaseRepoFactory`1.GetOrCreateRepo(RepoMetaData repoMetaData) in D:\Data\dev\Products\SkymemRex\Skymem\CommonLib\MongoStackExt\src\MongoStackExt\RepoFactory\BaseRepoFactory.cs:line 67 at AppBaseStack.MongoStack.EntityRepository`1..ctor(IBaseRepoFactory`1 baseRepoFactory, RepoMetaData repoMeta) in D:\Data\dev\Products\SkymemRex\Skymem\CommonLib\MongoStackExt\src\MongoStackExt\Repo\Base\EntityRepository.cs:line 73 at AppBaseStack.MongoStack.MutblRepo`1..ctor(IBaseRepoFactory`1 baseRepoFactory, RepoMetaData repoMeta) in D:\Data\dev\Products\SkymemRex\Skymem\CommonLib\MongoStackExt\src\MongoStackExt\Repo\BaseRepo\MutblRepo.cs:line 46 at lambda_method132(Closure, Object[]) at Autofac.Core.Activators.Reflection.BoundConstructor.Instantiate() --- End of inner exception stack trace --- at Autofac.Core.Activators.Reflection.BoundConstructor.Instantiate() at Autofac.Core.Activators.Reflection.ReflectionActivator.<>c__DisplayClass14_0.<UseSingleConstructorActivation>b__0(ResolveRequestContext ctxt, Action`1 next) at Autofac.Core.Resolving.Middleware.DelegateMiddleware.Execute(ResolveRequestContext context, Action`1 next) at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.<BuildPipeline>b__1(ResolveRequestContext ctxt) at Autofac.Core.Resolving.Middleware.DisposalTrackingMiddleware.Execute(ResolveRequestContext context, Action`1 next) at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.<BuildPipeline>b__1(ResolveRequestContext ctxt) at Autofac.Core.Resolving.Middleware.ActivatorErrorHandlingMiddleware.Execute(ResolveRequestContext context, Action`1 next) --- End of inner exception stack trace --- at Autofac.Core.Resolving.Middleware.ActivatorErrorHandlingMiddleware.Execute(ResolveRequestContext context, Action`1 next) at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.<BuildPipeline>b__1(ResolveRequestContext ctxt) at Autofac.Core.Pipeline.ResolvePipeline.Invoke(ResolveRequestContext ctxt) at Autofac.Core.Resolving.Middleware.RegistrationPipelineInvokeMiddleware.Execute(ResolveRequestContext context, Action`1 next) at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.<BuildPipeline>b__1(ResolveRequestContext ctxt) at Autofac.Core.Resolving.Middleware.SharingMiddleware.Execute(ResolveRequestContext context, Action`1 next) at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.<BuildPipeline>b__1(ResolveRequestContext ctxt) at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.<BuildPipeline>b__1(ResolveRequestContext ctxt) at Autofac.Core.Resolving.Middleware.CircularDependencyDetectorMiddleware.Execute(ResolveRequestContext context, Action`1 next) at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.<BuildPipeline>b__1(ResolveRequestContext ctxt) at Autofac.Core.Pipeline.ResolvePipeline.Invoke(ResolveRequestContext ctxt) at Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, ResolveRequest request) at Autofac.Core.Resolving.ResolveOperation.ExecuteOperation(ResolveRequest request) at Autofac.Core.Resolving.ResolveOperation.Execute(ResolveRequest request) at Autofac.Core.Lifetime.LifetimeScope.ResolveComponent(ResolveRequest request) at Autofac.ResolutionExtensions.TryResolveService(IComponentContext context, Service service, IEnumerable`1 parameters, Object& instance) at Autofac.ResolutionExtensions.ResolveService(IComponentContext context, Service service, IEnumerable`1 parameters) at Autofac.ResolutionExtensions.Resolve(IComponentContext context, Type serviceType, IEnumerable`1 parameters) at Autofac.ResolutionExtensions.Resolve[TService](IComponentContext context, IEnumerable`1 parameters) at Autofac.ResolutionExtensions.Resolve[TService](IComponentContext context, Parameter[] parameters) at AppCommon.AppSettingRepoHelper.GetAppSettingData() in D:\Data\dev\Products\SkymemRex\Skymem\CommonLib\AppCommonExt\AppCommonExt\AppSetting\AppSettingRepoHelper.cs:line 35 at AppCommon.FileDataFoldersPath.FillDataRawFoldersPath(String applicationBasePath) in D:\Data\dev\Products\SkymemRex\Skymem\CommonLib\AppCommonExt\AppCommonExt\Util\FileDataService\FileDataFoldersPath.cs:line 31 at AppCommon.FileDataFoldersPath.Init(String applicationBasePath) in D:\Data\dev\Products\SkymemRex\Skymem\CommonLib\AppCommonExt\AppCommonExt\Util\FileDataService\FileDataFoldersPath.cs:line 22 at EmailHuntNT.Startup.Configure(IApplicationBuilder app, IWebHostEnvironment env) in D:\Data\dev\Products\SkymemRex\Skymem\EmailHuntNT\src\EmailHuntNT\Startup.cs:line 294 at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor) at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at Microsoft.AspNetCore.Hosting.ConfigureBuilder.Invoke(Object instance, IApplicationBuilder builder) at Microsoft.AspNetCore.Hosting.GenericWebHostService.StartAsync(CancellationToken cancellationToken) at Microsoft.Extensions.Hosting.Internal.Host.StartAsync(CancellationToken cancellationToken) at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token) at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token) at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.Run(IHost host) at EmailHuntNT.Program.Main(String[] args) in D:\Data\dev\Products\SkymemRex\Skymem\EmailHuntNT\src\EmailHuntNT\Program.cs:line 17
Program.cs
LoggerNtNs.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 ---> Autofac.Core.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.DependencyResolutionException: An exception was thrown while invoking the constructor 'Void .ctor(AppBaseStack.MongoStack.IBaseRepoFactory`1[AppCommon.AppSettingData], AppBaseStack.MongoStack.RepoMetaData)' on type 'MutblRepo`1'. ---> System.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" }] }. at MongoDB.Driver.Core.Clusters.Cluster.ThrowTimeoutException(IServerSelector selector, ClusterDescription description) at MongoDB.Driver.Core.Clusters.Cluster.WaitForDescriptionChangedHelper.HandleCompletedTask(Task completedTask) at MongoDB.Driver.Core.Clusters.Cluster.WaitForDescriptionChanged(IServerSelector selector, ClusterDescription description, Task descriptionChangedTask, TimeSpan timeout, CancellationToken cancellationToken) at MongoDB.Driver.Core.Clusters.Cluster.SelectServer(IServerSelector selector, CancellationToken cancellationToken) at MongoDB.Driver.MongoClient.AreSessionsSupportedAfterServerSelection(CancellationToken cancellationToken) at MongoDB.Driver.MongoClient.AreSessionsSupported(CancellationToken cancellationToken) at MongoDB.Driver.MongoClient.StartImplicitSession(CancellationToken cancellationToken) at MongoDB.Driver.OperationExecutor.StartImplicitSession(CancellationToken cancellationToken) at MongoDB.Driver.MongoCollectionImpl`1.UsingImplicitSession[TResult](Func`2 func, CancellationToken cancellationToken) at MongoDB.Driver.MongoCollectionImpl`1.MongoIndexManager.CreateMany(IEnumerable`1 models, CreateManyIndexesOptions options, CancellationToken cancellationToken) at MongoDB.Driver.MongoIndexManagerBase`1.CreateOne(CreateIndexModel`1 model, CreateOneIndexOptions options, CancellationToken cancellationToken) at MongoRepositoryNT.MongoCollectionPool`1.AddOneUniqueIndex(IMongoCollection`1 inCollection, String key) in D:\Data\dev\Products\SkymemRex\Skymem\CommonLib\MongoRepositoryExt\src\MongoRepositoryNT\Base\Pool\MongoCollectionPool.cs:line 297 at MongoRepositoryNT.MongoCollectionPool`1.Init(IMongoCollection`1 inCollection, List`1 index, List`1 uniqueIndex) in D:\Data\dev\Products\SkymemRex\Skymem\CommonLib\MongoRepositoryExt\src\MongoRepositoryNT\Base\Pool\MongoCollectionPool.cs:line 191 at MongoRepositoryNT.MongoCollectionPool`1.Create(IRepoDescData inRepoDescData) in D:\Data\dev\Products\SkymemRex\Skymem\CommonLib\MongoRepositoryExt\src\MongoRepositoryNT\Base\Pool\MongoCollectionPool.cs:line 163 at MongoRepositoryNT.MongoCollectionPool`1.GetOrAdd(IRepoDescData inRepoDescData) in D:\Data\dev\Products\SkymemRex\Skymem\CommonLib\MongoRepositoryExt\src\MongoRepositoryNT\Base\Pool\MongoCollectionPool.cs:line 124 at MongoRepositoryNT.RepoRestNative`1..ctor(IRepoDescData repoDescData) in D:\Data\dev\Products\SkymemRex\Skymem\CommonLib\MongoRepositoryExt\src\MongoRepositoryNT\RestRepo\RepoRestNative.cs:line 69 at RepoLambda.BaseRepo`1..ctor(IRepoDescData repoDescData) in D:\Data\dev\Products\SkymemRex\Skymem\CommonLib\MongoRepositoryExt\src\RepoLambda\Repo\BaseRepo.cs:line 55 at AppBaseStack.MongoStack.BaseRepoFactory`1.GetOrCreateRepo(RepoMetaData repoMetaData) in D:\Data\dev\Products\SkymemRex\Skymem\CommonLib\MongoStackExt\src\MongoStackExt\RepoFactory\BaseRepoFactory.cs:line 67 at AppBaseStack.MongoStack.EntityRepository`1..ctor(IBaseRepoFactory`1 baseRepoFactory, RepoMetaData repoMeta) in D:\Data\dev\Products\SkymemRex\Skymem\CommonLib\MongoStackExt\src\MongoStackExt\Repo\Base\EntityRepository.cs:line 73 at AppBaseStack.MongoStack.MutblRepo`1..ctor(IBaseRepoFactory`1 baseRepoFactory, RepoMetaData repoMeta) in D:\Data\dev\Products\SkymemRex\Skymem\CommonLib\MongoStackExt\src\MongoStackExt\Repo\BaseRepo\MutblRepo.cs:line 46 at lambda_method132(Closure, Object[]) at Autofac.Core.Activators.Reflection.BoundConstructor.Instantiate() --- End of inner exception stack trace --- at Autofac.Core.Activators.Reflection.BoundConstructor.Instantiate() at Autofac.Core.Activators.Reflection.ReflectionActivator.<>c__DisplayClass14_0.<UseSingleConstructorActivation>b__0(ResolveRequestContext ctxt, Action`1 next) at Autofac.Core.Resolving.Middleware.DelegateMiddleware.Execute(ResolveRequestContext context, Action`1 next) at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.<BuildPipeline>b__1(ResolveRequestContext ctxt) at Autofac.Core.Resolving.Middleware.DisposalTrackingMiddleware.Execute(ResolveRequestContext context, Action`1 next) at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.<BuildPipeline>b__1(ResolveRequestContext ctxt) at Autofac.Core.Resolving.Middleware.ActivatorErrorHandlingMiddleware.Execute(ResolveRequestContext context, Action`1 next) --- End of inner exception stack trace --- at Autofac.Core.Resolving.Middleware.ActivatorErrorHandlingMiddleware.Execute(ResolveRequestContext context, Action`1 next) at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.<BuildPipeline>b__1(ResolveRequestContext ctxt) at Autofac.Core.Pipeline.ResolvePipeline.Invoke(ResolveRequestContext ctxt) at Autofac.Core.Resolving.Middleware.RegistrationPipelineInvokeMiddleware.Execute(ResolveRequestContext context, Action`1 next) at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.<BuildPipeline>b__1(ResolveRequestContext ctxt) at Autofac.Core.Resolving.Middleware.SharingMiddleware.Execute(ResolveRequestContext context, Action`1 next) at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.<BuildPipeline>b__1(ResolveRequestContext ctxt) at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.<BuildPipeline>b__1(ResolveRequestContext ctxt) at Autofac.Core.Resolving.Middleware.CircularDependencyDetectorMiddleware.Execute(ResolveRequestContext context, Action`1 next) at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.<BuildPipeline>b__1(ResolveRequestContext ctxt) at Autofac.Core.Pipeline.ResolvePipeline.Invoke(ResolveRequestContext ctxt) at Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, ResolveRequest request) at Autofac.Core.Resolving.ResolveOperation.ExecuteOperation(ResolveRequest request) at Autofac.Core.Resolving.ResolveOperation.Execute(ResolveRequest request) at Autofac.Core.Lifetime.LifetimeScope.ResolveComponent(ResolveRequest request) at Autofac.ResolutionExtensions.TryResolveService(IComponentContext context, Service service, IEnumerable`1 parameters, Object& instance) at Autofac.ResolutionExtensions.ResolveService(IComponentContext context, Service service, IEnumerable`1 parameters) at Autofac.ResolutionExtensions.Resolve(IComponentContext context, Type serviceType, IEnumerable`1 parameters) at Autofac.ResolutionExtensions.Resolve[TService](IComponentContext context, IEnumerable`1 parameters) at Autofac.ResolutionExtensions.Resolve[TService](IComponentContext context, Parameter[] parameters) at AppCommon.AppSettingRepoHelper.GetAppSettingData() in D:\Data\dev\Products\SkymemRex\Skymem\CommonLib\AppCommonExt\AppCommonExt\AppSetting\AppSettingRepoHelper.cs:line 35 at AppCommon.FileDataFoldersPath.FillDataRawFoldersPath(String applicationBasePath) in D:\Data\dev\Products\SkymemRex\Skymem\CommonLib\AppCommonExt\AppCommonExt\Util\FileDataService\FileDataFoldersPath.cs:line 31 at AppCommon.FileDataFoldersPath.Init(String applicationBasePath) in D:\Data\dev\Products\SkymemRex\Skymem\CommonLib\AppCommonExt\AppCommonExt\Util\FileDataService\FileDataFoldersPath.cs:line 22 at EmailHuntNT.Startup.Configure(IApplicationBuilder app, IWebHostEnvironment env) in D:\Data\dev\Products\SkymemRex\Skymem\EmailHuntNT\src\EmailHuntNT\Startup.cs:line 294 at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor) at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at Microsoft.AspNetCore.Hosting.ConfigureBuilder.Invoke(Object instance, IApplicationBuilder builder) at Microsoft.AspNetCore.Hosting.GenericWebHostService.StartAsync(CancellationToken cancellationToken) at Microsoft.Extensions.Hosting.Internal.Host.StartAsync(CancellationToken cancellationToken) at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token) at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token) at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.Run(IHost host) at EmailHuntNT.Program.Main(String[] args) in D:\Data\dev\Products\SkymemRex\Skymem\EmailHuntNT\src\EmailHuntNT\Program.cs:line 17 --- End of inner exception stack trace --- at EmailHuntNT.Program.Main(String[] args) in D:\Data\dev\Products\SkymemRex\Skymem\EmailHuntNT\src\EmailHuntNT\Program.cs:line 25