2026-04-08 09:24:51,337 [1] INFO RedisLogger - ConnectionMultiplexer(29083993)附加自定义事件 2026-04-08 09:24:52,654 [1] ERROR Spring.Objects.Factory.Support.DefaultListableObjectFactory - GetObjectInternal: error obtaining object &NHibernateSessionFactory 2026-04-08 09:24:52,717 [1] ERROR MCMS.Product.Startup - Error creating context 'main': Connection refused System.Configuration.ConfigurationErrorsException: Error creating context 'main': Connection refused ---> Spring.Objects.Factory.ObjectCreationException: Error creating object with name 'NHibernateSessionFactory' defined in 'assembly [MCMS.Product.Service, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null], resource [MCMS.Product.Service.Config.Dao_MYSQL.xml] line 27' : Initialization of object failed : Unable to connect to any of the specified MySQL hosts. ---> MySql.Data.MySqlClient.MySqlException (0x80004005): Unable to connect to any of the specified MySQL hosts. ---> System.Net.Sockets.SocketException (111): Connection refused at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken) at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token) at System.Threading.Tasks.ValueTask.ValueTaskSourceAsTask.<>c.<.cctor>b__4_0(Object state) --- End of stack trace from previous location --- at System.Net.Sockets.TcpClient.CompleteConnectAsync(Task task) at MySql.Data.MySqlClient.NativeDriver.<>c.b__38_0(Exception ex) at System.AggregateException.Handle(Func`2 predicate) at MySql.Data.MySqlClient.NativeDriver.OpenAsync(Boolean execAsync, CancellationToken cancellationToken) at MySql.Data.MySqlClient.Driver.OpenAsync(Boolean execAsync, CancellationToken cancellationToken) at MySql.Data.MySqlClient.Driver.CreateAsync(MySqlConnectionStringBuilder settings, Boolean execAsync, CancellationToken cancellationToken) at MySql.Data.MySqlClient.Driver.CreateAsync(MySqlConnectionStringBuilder settings, Boolean execAsync, CancellationToken cancellationToken) at MySql.Data.MySqlClient.MySqlPool.CreateNewPooledConnectionAsync(Boolean execAsync, CancellationToken cancellationToken) at MySql.Data.MySqlClient.MySqlPool.InitializeAsync(Boolean execAsync, CancellationToken cancellationToken) at MySql.Data.MySqlClient.MySqlPoolManager.GetPoolAsync(MySqlConnectionStringBuilder settings, Boolean execAsync, CancellationToken cancellationToken) at MySql.Data.MySqlClient.MySqlConnection.OpenAsync(Boolean execAsync, CancellationToken cancellationToken) at MySql.Data.MySqlClient.MySqlConnection.Open() at NHibernate.Connection.DriverConnectionProvider.GetConnection(String connectionString) at NHibernate.Connection.ConnectionProvider.GetConnection() at NHibernate.Tool.hbm2ddl.SuppliedConnectionProviderConnectionHelper.Prepare() at NHibernate.Tool.hbm2ddl.SchemaMetadataUpdater.GetReservedWords(Dialect dialect, IConnectionHelper connectionHelper) at NHibernate.Tool.hbm2ddl.SchemaMetadataUpdater.UpdateDialectKeywords(Dialect dialect, IConnectionHelper connectionHelper) at NHibernate.Tool.hbm2ddl.SchemaMetadataUpdater.Update(ISessionFactoryImplementor sessionFactory) at NHibernate.Impl.SessionFactoryImpl..ctor(Configuration cfg, IMapping mapping, Settings settings, EventListeners listeners) at NHibernate.Cfg.Configuration.BuildSessionFactory() at Spring.Data.NHibernate.LocalSessionFactoryObject.NewSessionFactory(Configuration config) at Spring.Data.NHibernate.LocalSessionFactoryObject.AfterPropertiesSet() at Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory.InvokeInitMethods(Object target, String name, IConfigurableObjectDefinition definition) at Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory.ConfigureObject(String name, RootObjectDefinition definition, IObjectWrapper wrapper) at Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory.InstantiateObject(String name, RootObjectDefinition definition, Object[] arguments, Boolean allowEagerCaching, Boolean suppressConfigure) --- End of inner exception stack trace --- at Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory.InstantiateObject(String name, RootObjectDefinition definition, Object[] arguments, Boolean allowEagerCaching, Boolean suppressConfigure) at Spring.Objects.Factory.Support.AbstractObjectFactory.CreateAndCacheSingletonInstance(String objectName, RootObjectDefinition objectDefinition, Object[] arguments) at Spring.Objects.Factory.Support.AbstractObjectFactory.GetObjectInternal(String name, Type requiredType, Object[] arguments, Boolean suppressConfigure) at Spring.Objects.Factory.Support.AbstractObjectFactory.GetObject(String name) at Spring.Objects.Factory.Support.DefaultListableObjectFactory.PreInstantiateSingletons() at Spring.Context.Support.AbstractApplicationContext.Refresh() at Spring.Context.Support.NetCoreContextInstantiator.InvokeContextConstructor(ConstructorInfo ctor) at Spring.Context.Support.ContextInstantiator.InstantiateContext() at Spring.Context.Support.ContextCreater.InstantiateContext(IApplicationContext parentContext, String contextName, Type contextType, Boolean caseSensitive, IList`1 resources) at Spring.Context.Support.ContextCreater.Create(IApplicationContext parent, IConfiguration netCoreConfigObject, String contextElement) --- End of inner exception stack trace --- at Spring.Context.Support.ContextCreater.Create(IApplicationContext parent, IConfiguration netCoreConfigObject, String contextElement) at Spring.Context.Support.ContextCreater.Create(String contextElement) at Spring.Extensions.DependencyInjection.ContextCreaterExtensions.WithSpringReturnContext(IServiceCollection services, IConfiguration configuration, String sectionName, String netCoreConfigObjectName) at Spring.Extensions.DependencyInjection.ContextCreaterExtensions.WithSpring(IServiceCollection services, IConfiguration configuration, String sectionName, String netCoreConfigObjectName) at MCMS.Product.Startup.ConfigureServices(IServiceCollection services) in E:\agent\_work\13\s\MCMS.Product\Startup.cs:line 65 2026-04-08 09:24:54,821 [1] INFO RedisLogger - ConnectionMultiplexer(29083993)附加自定义事件 2026-04-08 09:24:55,832 [1] ERROR Spring.Objects.Factory.Support.DefaultListableObjectFactory - GetObjectInternal: error obtaining object &NHibernateSessionFactory 2026-04-08 09:24:55,858 [1] ERROR MCMS.Product.Startup - Error creating context 'main': Connection refused System.Configuration.ConfigurationErrorsException: Error creating context 'main': Connection refused ---> Spring.Objects.Factory.ObjectCreationException: Error creating object with name 'NHibernateSessionFactory' defined in 'assembly [MCMS.Product.Service, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null], resource [MCMS.Product.Service.Config.Dao_MYSQL.xml] line 27' : Initialization of object failed : Unable to connect to any of the specified MySQL hosts. ---> MySql.Data.MySqlClient.MySqlException (0x80004005): Unable to connect to any of the specified MySQL hosts. ---> System.Net.Sockets.SocketException (111): Connection refused at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken) at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token) at System.Threading.Tasks.ValueTask.ValueTaskSourceAsTask.<>c.<.cctor>b__4_0(Object state) --- End of stack trace from previous location --- at System.Net.Sockets.TcpClient.CompleteConnectAsync(Task task) at MySql.Data.MySqlClient.NativeDriver.<>c.b__38_0(Exception ex) at System.AggregateException.Handle(Func`2 predicate) at MySql.Data.MySqlClient.NativeDriver.OpenAsync(Boolean execAsync, CancellationToken cancellationToken) at MySql.Data.MySqlClient.Driver.OpenAsync(Boolean execAsync, CancellationToken cancellationToken) at MySql.Data.MySqlClient.Driver.CreateAsync(MySqlConnectionStringBuilder settings, Boolean execAsync, CancellationToken cancellationToken) at MySql.Data.MySqlClient.Driver.CreateAsync(MySqlConnectionStringBuilder settings, Boolean execAsync, CancellationToken cancellationToken) at MySql.Data.MySqlClient.MySqlPool.CreateNewPooledConnectionAsync(Boolean execAsync, CancellationToken cancellationToken) at MySql.Data.MySqlClient.MySqlPool.InitializeAsync(Boolean execAsync, CancellationToken cancellationToken) at MySql.Data.MySqlClient.MySqlPoolManager.GetPoolAsync(MySqlConnectionStringBuilder settings, Boolean execAsync, CancellationToken cancellationToken) at MySql.Data.MySqlClient.MySqlConnection.OpenAsync(Boolean execAsync, CancellationToken cancellationToken) at MySql.Data.MySqlClient.MySqlConnection.Open() at NHibernate.Connection.DriverConnectionProvider.GetConnection(String connectionString) at NHibernate.Connection.ConnectionProvider.GetConnection() at NHibernate.Tool.hbm2ddl.SuppliedConnectionProviderConnectionHelper.Prepare() at NHibernate.Tool.hbm2ddl.SchemaMetadataUpdater.GetReservedWords(Dialect dialect, IConnectionHelper connectionHelper) at NHibernate.Tool.hbm2ddl.SchemaMetadataUpdater.UpdateDialectKeywords(Dialect dialect, IConnectionHelper connectionHelper) at NHibernate.Tool.hbm2ddl.SchemaMetadataUpdater.Update(ISessionFactoryImplementor sessionFactory) at NHibernate.Impl.SessionFactoryImpl..ctor(Configuration cfg, IMapping mapping, Settings settings, EventListeners listeners) at NHibernate.Cfg.Configuration.BuildSessionFactory() at Spring.Data.NHibernate.LocalSessionFactoryObject.NewSessionFactory(Configuration config) at Spring.Data.NHibernate.LocalSessionFactoryObject.AfterPropertiesSet() at Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory.InvokeInitMethods(Object target, String name, IConfigurableObjectDefinition definition) at Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory.ConfigureObject(String name, RootObjectDefinition definition, IObjectWrapper wrapper) at Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory.InstantiateObject(String name, RootObjectDefinition definition, Object[] arguments, Boolean allowEagerCaching, Boolean suppressConfigure) --- End of inner exception stack trace --- at Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory.InstantiateObject(String name, RootObjectDefinition definition, Object[] arguments, Boolean allowEagerCaching, Boolean suppressConfigure) at Spring.Objects.Factory.Support.AbstractObjectFactory.CreateAndCacheSingletonInstance(String objectName, RootObjectDefinition objectDefinition, Object[] arguments) at Spring.Objects.Factory.Support.AbstractObjectFactory.GetObjectInternal(String name, Type requiredType, Object[] arguments, Boolean suppressConfigure) at Spring.Objects.Factory.Support.AbstractObjectFactory.GetObject(String name) at Spring.Objects.Factory.Support.DefaultListableObjectFactory.PreInstantiateSingletons() at Spring.Context.Support.AbstractApplicationContext.Refresh() at Spring.Context.Support.NetCoreContextInstantiator.InvokeContextConstructor(ConstructorInfo ctor) at Spring.Context.Support.ContextInstantiator.InstantiateContext() at Spring.Context.Support.ContextCreater.InstantiateContext(IApplicationContext parentContext, String contextName, Type contextType, Boolean caseSensitive, IList`1 resources) at Spring.Context.Support.ContextCreater.Create(IApplicationContext parent, IConfiguration netCoreConfigObject, String contextElement) --- End of inner exception stack trace --- at Spring.Context.Support.ContextCreater.Create(IApplicationContext parent, IConfiguration netCoreConfigObject, String contextElement) at Spring.Context.Support.ContextCreater.Create(String contextElement) at Spring.Extensions.DependencyInjection.ContextCreaterExtensions.WithSpringReturnContext(IServiceCollection services, IConfiguration configuration, String sectionName, String netCoreConfigObjectName) at Spring.Extensions.DependencyInjection.ContextCreaterExtensions.WithSpring(IServiceCollection services, IConfiguration configuration, String sectionName, String netCoreConfigObjectName) at MCMS.Product.Startup.ConfigureServices(IServiceCollection services) in E:\agent\_work\13\s\MCMS.Product\Startup.cs:line 65 2026-04-08 09:24:57,648 [1] INFO RedisLogger - ConnectionMultiplexer(29083993)附加自定义事件 2026-04-08 09:24:58,441 [1] ERROR Spring.Objects.Factory.Support.DefaultListableObjectFactory - GetObjectInternal: error obtaining object &NHibernateSessionFactory 2026-04-08 09:24:58,476 [1] ERROR MCMS.Product.Startup - Error creating context 'main': Connection refused System.Configuration.ConfigurationErrorsException: Error creating context 'main': Connection refused ---> Spring.Objects.Factory.ObjectCreationException: Error creating object with name 'NHibernateSessionFactory' defined in 'assembly [MCMS.Product.Service, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null], resource [MCMS.Product.Service.Config.Dao_MYSQL.xml] line 27' : Initialization of object failed : Unable to connect to any of the specified MySQL hosts. ---> MySql.Data.MySqlClient.MySqlException (0x80004005): Unable to connect to any of the specified MySQL hosts. ---> System.Net.Sockets.SocketException (111): Connection refused at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken) at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token) at System.Threading.Tasks.ValueTask.ValueTaskSourceAsTask.<>c.<.cctor>b__4_0(Object state) --- End of stack trace from previous location --- at System.Net.Sockets.TcpClient.CompleteConnectAsync(Task task) at MySql.Data.MySqlClient.NativeDriver.<>c.b__38_0(Exception ex) at System.AggregateException.Handle(Func`2 predicate) at MySql.Data.MySqlClient.NativeDriver.OpenAsync(Boolean execAsync, CancellationToken cancellationToken) at MySql.Data.MySqlClient.Driver.OpenAsync(Boolean execAsync, CancellationToken cancellationToken) at MySql.Data.MySqlClient.Driver.CreateAsync(MySqlConnectionStringBuilder settings, Boolean execAsync, CancellationToken cancellationToken) at MySql.Data.MySqlClient.Driver.CreateAsync(MySqlConnectionStringBuilder settings, Boolean execAsync, CancellationToken cancellationToken) at MySql.Data.MySqlClient.MySqlPool.CreateNewPooledConnectionAsync(Boolean execAsync, CancellationToken cancellationToken) at MySql.Data.MySqlClient.MySqlPool.InitializeAsync(Boolean execAsync, CancellationToken cancellationToken) at MySql.Data.MySqlClient.MySqlPoolManager.GetPoolAsync(MySqlConnectionStringBuilder settings, Boolean execAsync, CancellationToken cancellationToken) at MySql.Data.MySqlClient.MySqlConnection.OpenAsync(Boolean execAsync, CancellationToken cancellationToken) at MySql.Data.MySqlClient.MySqlConnection.Open() at NHibernate.Connection.DriverConnectionProvider.GetConnection(String connectionString) at NHibernate.Connection.ConnectionProvider.GetConnection() at NHibernate.Tool.hbm2ddl.SuppliedConnectionProviderConnectionHelper.Prepare() at NHibernate.Tool.hbm2ddl.SchemaMetadataUpdater.GetReservedWords(Dialect dialect, IConnectionHelper connectionHelper) at NHibernate.Tool.hbm2ddl.SchemaMetadataUpdater.UpdateDialectKeywords(Dialect dialect, IConnectionHelper connectionHelper) at NHibernate.Tool.hbm2ddl.SchemaMetadataUpdater.Update(ISessionFactoryImplementor sessionFactory) at NHibernate.Impl.SessionFactoryImpl..ctor(Configuration cfg, IMapping mapping, Settings settings, EventListeners listeners) at NHibernate.Cfg.Configuration.BuildSessionFactory() at Spring.Data.NHibernate.LocalSessionFactoryObject.NewSessionFactory(Configuration config) at Spring.Data.NHibernate.LocalSessionFactoryObject.AfterPropertiesSet() at Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory.InvokeInitMethods(Object target, String name, IConfigurableObjectDefinition definition) at Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory.ConfigureObject(String name, RootObjectDefinition definition, IObjectWrapper wrapper) at Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory.InstantiateObject(String name, RootObjectDefinition definition, Object[] arguments, Boolean allowEagerCaching, Boolean suppressConfigure) --- End of inner exception stack trace --- at Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory.InstantiateObject(String name, RootObjectDefinition definition, Object[] arguments, Boolean allowEagerCaching, Boolean suppressConfigure) at Spring.Objects.Factory.Support.AbstractObjectFactory.CreateAndCacheSingletonInstance(String objectName, RootObjectDefinition objectDefinition, Object[] arguments) at Spring.Objects.Factory.Support.AbstractObjectFactory.GetObjectInternal(String name, Type requiredType, Object[] arguments, Boolean suppressConfigure) at Spring.Objects.Factory.Support.AbstractObjectFactory.GetObject(String name) at Spring.Objects.Factory.Support.DefaultListableObjectFactory.PreInstantiateSingletons() at Spring.Context.Support.AbstractApplicationContext.Refresh() at Spring.Context.Support.NetCoreContextInstantiator.InvokeContextConstructor(ConstructorInfo ctor) at Spring.Context.Support.ContextInstantiator.InstantiateContext() at Spring.Context.Support.ContextCreater.InstantiateContext(IApplicationContext parentContext, String contextName, Type contextType, Boolean caseSensitive, IList`1 resources) at Spring.Context.Support.ContextCreater.Create(IApplicationContext parent, IConfiguration netCoreConfigObject, String contextElement) --- End of inner exception stack trace --- at Spring.Context.Support.ContextCreater.Create(IApplicationContext parent, IConfiguration netCoreConfigObject, String contextElement) at Spring.Context.Support.ContextCreater.Create(String contextElement) at Spring.Extensions.DependencyInjection.ContextCreaterExtensions.WithSpringReturnContext(IServiceCollection services, IConfiguration configuration, String sectionName, String netCoreConfigObjectName) at Spring.Extensions.DependencyInjection.ContextCreaterExtensions.WithSpring(IServiceCollection services, IConfiguration configuration, String sectionName, String netCoreConfigObjectName) at MCMS.Product.Startup.ConfigureServices(IServiceCollection services) in E:\agent\_work\13\s\MCMS.Product\Startup.cs:line 65 2026-04-08 09:25:00,112 [1] INFO RedisLogger - ConnectionMultiplexer(29083993)附加自定义事件 2026-04-08 09:25:00,891 [1] ERROR Spring.Objects.Factory.Support.DefaultListableObjectFactory - GetObjectInternal: error obtaining object &NHibernateSessionFactory 2026-04-08 09:25:00,911 [1] ERROR MCMS.Product.Startup - Error creating context 'main': Connection refused System.Configuration.ConfigurationErrorsException: Error creating context 'main': Connection refused ---> Spring.Objects.Factory.ObjectCreationException: Error creating object with name 'NHibernateSessionFactory' defined in 'assembly [MCMS.Product.Service, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null], resource [MCMS.Product.Service.Config.Dao_MYSQL.xml] line 27' : Initialization of object failed : Unable to connect to any of the specified MySQL hosts. ---> MySql.Data.MySqlClient.MySqlException (0x80004005): Unable to connect to any of the specified MySQL hosts. ---> System.Net.Sockets.SocketException (111): Connection refused at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken) at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token) at System.Threading.Tasks.ValueTask.ValueTaskSourceAsTask.<>c.<.cctor>b__4_0(Object state) --- End of stack trace from previous location --- at System.Net.Sockets.TcpClient.CompleteConnectAsync(Task task) at MySql.Data.MySqlClient.NativeDriver.<>c.b__38_0(Exception ex) at System.AggregateException.Handle(Func`2 predicate) at MySql.Data.MySqlClient.NativeDriver.OpenAsync(Boolean execAsync, CancellationToken cancellationToken) at MySql.Data.MySqlClient.Driver.OpenAsync(Boolean execAsync, CancellationToken cancellationToken) at MySql.Data.MySqlClient.Driver.CreateAsync(MySqlConnectionStringBuilder settings, Boolean execAsync, CancellationToken cancellationToken) at MySql.Data.MySqlClient.Driver.CreateAsync(MySqlConnectionStringBuilder settings, Boolean execAsync, CancellationToken cancellationToken) at MySql.Data.MySqlClient.MySqlPool.CreateNewPooledConnectionAsync(Boolean execAsync, CancellationToken cancellationToken) at MySql.Data.MySqlClient.MySqlPool.InitializeAsync(Boolean execAsync, CancellationToken cancellationToken) at MySql.Data.MySqlClient.MySqlPoolManager.GetPoolAsync(MySqlConnectionStringBuilder settings, Boolean execAsync, CancellationToken cancellationToken) at MySql.Data.MySqlClient.MySqlConnection.OpenAsync(Boolean execAsync, CancellationToken cancellationToken) at MySql.Data.MySqlClient.MySqlConnection.Open() at NHibernate.Connection.DriverConnectionProvider.GetConnection(String connectionString) at NHibernate.Connection.ConnectionProvider.GetConnection() at NHibernate.Tool.hbm2ddl.SuppliedConnectionProviderConnectionHelper.Prepare() at NHibernate.Tool.hbm2ddl.SchemaMetadataUpdater.GetReservedWords(Dialect dialect, IConnectionHelper connectionHelper) at NHibernate.Tool.hbm2ddl.SchemaMetadataUpdater.UpdateDialectKeywords(Dialect dialect, IConnectionHelper connectionHelper) at NHibernate.Tool.hbm2ddl.SchemaMetadataUpdater.Update(ISessionFactoryImplementor sessionFactory) at NHibernate.Impl.SessionFactoryImpl..ctor(Configuration cfg, IMapping mapping, Settings settings, EventListeners listeners) at NHibernate.Cfg.Configuration.BuildSessionFactory() at Spring.Data.NHibernate.LocalSessionFactoryObject.NewSessionFactory(Configuration config) at Spring.Data.NHibernate.LocalSessionFactoryObject.AfterPropertiesSet() at Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory.InvokeInitMethods(Object target, String name, IConfigurableObjectDefinition definition) at Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory.ConfigureObject(String name, RootObjectDefinition definition, IObjectWrapper wrapper) at Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory.InstantiateObject(String name, RootObjectDefinition definition, Object[] arguments, Boolean allowEagerCaching, Boolean suppressConfigure) --- End of inner exception stack trace --- at Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory.InstantiateObject(String name, RootObjectDefinition definition, Object[] arguments, Boolean allowEagerCaching, Boolean suppressConfigure) at Spring.Objects.Factory.Support.AbstractObjectFactory.CreateAndCacheSingletonInstance(String objectName, RootObjectDefinition objectDefinition, Object[] arguments) at Spring.Objects.Factory.Support.AbstractObjectFactory.GetObjectInternal(String name, Type requiredType, Object[] arguments, Boolean suppressConfigure) at Spring.Objects.Factory.Support.AbstractObjectFactory.GetObject(String name) at Spring.Objects.Factory.Support.DefaultListableObjectFactory.PreInstantiateSingletons() at Spring.Context.Support.AbstractApplicationContext.Refresh() at Spring.Context.Support.NetCoreContextInstantiator.InvokeContextConstructor(ConstructorInfo ctor) at Spring.Context.Support.ContextInstantiator.InstantiateContext() at Spring.Context.Support.ContextCreater.InstantiateContext(IApplicationContext parentContext, String contextName, Type contextType, Boolean caseSensitive, IList`1 resources) at Spring.Context.Support.ContextCreater.Create(IApplicationContext parent, IConfiguration netCoreConfigObject, String contextElement) --- End of inner exception stack trace --- at Spring.Context.Support.ContextCreater.Create(IApplicationContext parent, IConfiguration netCoreConfigObject, String contextElement) at Spring.Context.Support.ContextCreater.Create(String contextElement) at Spring.Extensions.DependencyInjection.ContextCreaterExtensions.WithSpringReturnContext(IServiceCollection services, IConfiguration configuration, String sectionName, String netCoreConfigObjectName) at Spring.Extensions.DependencyInjection.ContextCreaterExtensions.WithSpring(IServiceCollection services, IConfiguration configuration, String sectionName, String netCoreConfigObjectName) at MCMS.Product.Startup.ConfigureServices(IServiceCollection services) in E:\agent\_work\13\s\MCMS.Product\Startup.cs:line 65 2026-04-08 09:25:02,453 [1] INFO RedisLogger - ConnectionMultiplexer(29083993)附加自定义事件 2026-04-08 09:25:03,222 [1] ERROR Spring.Objects.Factory.Support.DefaultListableObjectFactory - GetObjectInternal: error obtaining object &NHibernateSessionFactory 2026-04-08 09:25:03,246 [1] ERROR MCMS.Product.Startup - Error creating context 'main': Connection refused System.Configuration.ConfigurationErrorsException: Error creating context 'main': Connection refused ---> Spring.Objects.Factory.ObjectCreationException: Error creating object with name 'NHibernateSessionFactory' defined in 'assembly [MCMS.Product.Service, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null], resource [MCMS.Product.Service.Config.Dao_MYSQL.xml] line 27' : Initialization of object failed : Unable to connect to any of the specified MySQL hosts. ---> MySql.Data.MySqlClient.MySqlException (0x80004005): Unable to connect to any of the specified MySQL hosts. ---> System.Net.Sockets.SocketException (111): Connection refused at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken) at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token) at System.Threading.Tasks.ValueTask.ValueTaskSourceAsTask.<>c.<.cctor>b__4_0(Object state) --- End of stack trace from previous location --- at System.Net.Sockets.TcpClient.CompleteConnectAsync(Task task) at MySql.Data.MySqlClient.NativeDriver.<>c.b__38_0(Exception ex) at System.AggregateException.Handle(Func`2 predicate) at MySql.Data.MySqlClient.NativeDriver.OpenAsync(Boolean execAsync, CancellationToken cancellationToken) at MySql.Data.MySqlClient.Driver.OpenAsync(Boolean execAsync, CancellationToken cancellationToken) at MySql.Data.MySqlClient.Driver.CreateAsync(MySqlConnectionStringBuilder settings, Boolean execAsync, CancellationToken cancellationToken) at MySql.Data.MySqlClient.Driver.CreateAsync(MySqlConnectionStringBuilder settings, Boolean execAsync, CancellationToken cancellationToken) at MySql.Data.MySqlClient.MySqlPool.CreateNewPooledConnectionAsync(Boolean execAsync, CancellationToken cancellationToken) at MySql.Data.MySqlClient.MySqlPool.InitializeAsync(Boolean execAsync, CancellationToken cancellationToken) at MySql.Data.MySqlClient.MySqlPoolManager.GetPoolAsync(MySqlConnectionStringBuilder settings, Boolean execAsync, CancellationToken cancellationToken) at MySql.Data.MySqlClient.MySqlConnection.OpenAsync(Boolean execAsync, CancellationToken cancellationToken) at MySql.Data.MySqlClient.MySqlConnection.Open() at NHibernate.Connection.DriverConnectionProvider.GetConnection(String connectionString) at NHibernate.Connection.ConnectionProvider.GetConnection() at NHibernate.Tool.hbm2ddl.SuppliedConnectionProviderConnectionHelper.Prepare() at NHibernate.Tool.hbm2ddl.SchemaMetadataUpdater.GetReservedWords(Dialect dialect, IConnectionHelper connectionHelper) at NHibernate.Tool.hbm2ddl.SchemaMetadataUpdater.UpdateDialectKeywords(Dialect dialect, IConnectionHelper connectionHelper) at NHibernate.Tool.hbm2ddl.SchemaMetadataUpdater.Update(ISessionFactoryImplementor sessionFactory) at NHibernate.Impl.SessionFactoryImpl..ctor(Configuration cfg, IMapping mapping, Settings settings, EventListeners listeners) at NHibernate.Cfg.Configuration.BuildSessionFactory() at Spring.Data.NHibernate.LocalSessionFactoryObject.NewSessionFactory(Configuration config) at Spring.Data.NHibernate.LocalSessionFactoryObject.AfterPropertiesSet() at Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory.InvokeInitMethods(Object target, String name, IConfigurableObjectDefinition definition) at Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory.ConfigureObject(String name, RootObjectDefinition definition, IObjectWrapper wrapper) at Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory.InstantiateObject(String name, RootObjectDefinition definition, Object[] arguments, Boolean allowEagerCaching, Boolean suppressConfigure) --- End of inner exception stack trace --- at Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory.InstantiateObject(String name, RootObjectDefinition definition, Object[] arguments, Boolean allowEagerCaching, Boolean suppressConfigure) at Spring.Objects.Factory.Support.AbstractObjectFactory.CreateAndCacheSingletonInstance(String objectName, RootObjectDefinition objectDefinition, Object[] arguments) at Spring.Objects.Factory.Support.AbstractObjectFactory.GetObjectInternal(String name, Type requiredType, Object[] arguments, Boolean suppressConfigure) at Spring.Objects.Factory.Support.AbstractObjectFactory.GetObject(String name) at Spring.Objects.Factory.Support.DefaultListableObjectFactory.PreInstantiateSingletons() at Spring.Context.Support.AbstractApplicationContext.Refresh() at Spring.Context.Support.NetCoreContextInstantiator.InvokeContextConstructor(ConstructorInfo ctor) at Spring.Context.Support.ContextInstantiator.InstantiateContext() at Spring.Context.Support.ContextCreater.InstantiateContext(IApplicationContext parentContext, String contextName, Type contextType, Boolean caseSensitive, IList`1 resources) at Spring.Context.Support.ContextCreater.Create(IApplicationContext parent, IConfiguration netCoreConfigObject, String contextElement) --- End of inner exception stack trace --- at Spring.Context.Support.ContextCreater.Create(IApplicationContext parent, IConfiguration netCoreConfigObject, String contextElement) at Spring.Context.Support.ContextCreater.Create(String contextElement) at Spring.Extensions.DependencyInjection.ContextCreaterExtensions.WithSpringReturnContext(IServiceCollection services, IConfiguration configuration, String sectionName, String netCoreConfigObjectName) at Spring.Extensions.DependencyInjection.ContextCreaterExtensions.WithSpring(IServiceCollection services, IConfiguration configuration, String sectionName, String netCoreConfigObjectName) at MCMS.Product.Startup.ConfigureServices(IServiceCollection services) in E:\agent\_work\13\s\MCMS.Product\Startup.cs:line 65 2026-04-08 09:25:04,755 [1] INFO RedisLogger - ConnectionMultiplexer(29083993)附加自定义事件 2026-04-08 09:25:06,889 [1] DEBUG MCMS.Product.Startup - 项目运行环境(.NET 6.0.25):【产品微服务测试环境】 2026-04-08 09:25:07,457 [1] INFO MCMS.Product.Startup - 【应用程序启动成功】 2026-04-08 09:25:38,619 [31] WARN Microsoft.AspNetCore.HttpsPolicy.HttpsRedirectionMiddleware - Failed to determine the https port for redirect. 2026-04-08 15:31:46,639 [.NET Signal Handler] INFO MCMS.Product.Startup - 【应用程序优雅关闭】 2026-04-08 15:31:52,613 [1] INFO RedisLogger - ConnectionMultiplexer(60429346)附加自定义事件 2026-04-08 15:31:54,279 [1] DEBUG MCMS.Product.Startup - 项目运行环境(.NET 6.0.25):【产品微服务测试环境】 2026-04-08 15:31:54,751 [1] INFO MCMS.Product.Startup - 【应用程序启动成功】 2026-04-08 15:31:55,481 [27] WARN Microsoft.AspNetCore.HttpsPolicy.HttpsRedirectionMiddleware - Failed to determine the https port for redirect.