姜旭之 1 year ago
parent
commit
beb319b947
  1. 210
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Logs/log-20220718.txt
  2. 210
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Logs/log-20220825.txt
  3. 15055
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Logs/log-20221012.txt
  4. 11
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Startup.cs
  5. 4
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/home.js
  6. 6
      code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/Materials/MaterialDtoBase.cs
  7. 12
      code/src/SettleAccount.sln

210
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Logs/log-20220718.txt

@ -1,210 +0,0 @@
2022-07-18 16:04:56.174 G Starting web host.
2022-07-18 16:05:04.885 G User profile is available. Using '"C:\Users\Administrator\AppData\Local\ASP.NET\DataProtection-Keys"' as key repository and Windows DPAPI to encrypt keys at rest.
2022-07-18 16:05:04.997 G Loaded ABP modules:
2022-07-18 16:05:04.998 G - Win.Sfs.SettleAccount.SettleAccountHttpApiHostModule
2022-07-18 16:05:04.999 G - Win.Sfs.SettleAccount.SettleAccountApplicationModule
2022-07-18 16:05:05.000 G - Win.Sfs.SettleAccount.SettleAccountJobModule
2022-07-18 16:05:05.000 G - Win.Sfs.SettleAccount.SettleAccountDomainModule
2022-07-18 16:05:05.001 G - Volo.Abp.Domain.AbpDddDomainModule
2022-07-18 16:05:05.002 G - Volo.Abp.Auditing.AbpAuditingModule
2022-07-18 16:05:05.002 G - Volo.Abp.Data.AbpDataModule
2022-07-18 16:05:05.002 G - Volo.Abp.ObjectExtending.AbpObjectExtendingModule
2022-07-18 16:05:05.003 G - Volo.Abp.Localization.AbpLocalizationAbstractionsModule
2022-07-18 16:05:05.004 G - Volo.Abp.Validation.AbpValidationAbstractionsModule
2022-07-18 16:05:05.004 G - Volo.Abp.Uow.AbpUnitOfWorkModule
2022-07-18 16:05:05.005 G - Volo.Abp.EventBus.Abstractions.AbpEventBusAbstractionsModule
2022-07-18 16:05:05.005 G - Volo.Abp.Json.AbpJsonModule
2022-07-18 16:05:05.006 G - Volo.Abp.Timing.AbpTimingModule
2022-07-18 16:05:05.006 G - Volo.Abp.Localization.AbpLocalizationModule
2022-07-18 16:05:05.007 G - Volo.Abp.VirtualFileSystem.AbpVirtualFileSystemModule
2022-07-18 16:05:05.008 G - Volo.Abp.Settings.AbpSettingsModule
2022-07-18 16:05:05.008 G - Volo.Abp.Security.AbpSecurityModule
2022-07-18 16:05:05.009 G - Volo.Abp.MultiTenancy.AbpMultiTenancyModule
2022-07-18 16:05:05.009 G - Volo.Abp.Threading.AbpThreadingModule
2022-07-18 16:05:05.010 G - Volo.Abp.EventBus.AbpEventBusModule
2022-07-18 16:05:05.010 G - Volo.Abp.Guids.AbpGuidsModule
2022-07-18 16:05:05.011 G - Volo.Abp.ObjectMapping.AbpObjectMappingModule
2022-07-18 16:05:05.011 G - Volo.Abp.ExceptionHandling.AbpExceptionHandlingModule
2022-07-18 16:05:05.012 G - Volo.Abp.Specifications.AbpSpecificationsModule
2022-07-18 16:05:05.013 G - Win.Sfs.SettleAccount.SettleAccountDomainSharedModule
2022-07-18 16:05:05.013 G - Volo.Abp.Validation.AbpValidationModule
2022-07-18 16:05:05.014 G - Win.Sfs.SettleAccount.SettleAccountApplicationContractsModule
2022-07-18 16:05:05.015 G - Volo.Abp.Application.AbpDddApplicationContractsModule
2022-07-18 16:05:05.016 G - Volo.Abp.Authorization.AbpAuthorizationModule
2022-07-18 16:05:05.017 G - Volo.Abp.Authorization.AbpAuthorizationAbstractionsModule
2022-07-18 16:05:05.018 G - Volo.Abp.AutoMapper.AbpAutoMapperModule
2022-07-18 16:05:05.019 G - Volo.Abp.Dapper.AbpDapperModule
2022-07-18 16:05:05.020 G - Volo.Abp.EntityFrameworkCore.AbpEntityFrameworkCoreModule
2022-07-18 16:05:05.021 G - Win.Abp.Snowflakes.AbpSnowflakeGeneratorModule
2022-07-18 16:05:05.022 G - Volo.Abp.Http.Client.IdentityModel.AbpHttpClientIdentityModelModule
2022-07-18 16:05:05.023 G - Volo.Abp.Http.Client.AbpHttpClientModule
2022-07-18 16:05:05.025 G - Volo.Abp.Http.AbpHttpModule
2022-07-18 16:05:05.026 G - Volo.Abp.Http.AbpHttpAbstractionsModule
2022-07-18 16:05:05.027 G - Volo.Abp.Minify.AbpMinifyModule
2022-07-18 16:05:05.028 G - Volo.Abp.Castle.AbpCastleCoreModule
2022-07-18 16:05:05.030 G - Volo.Abp.IdentityModel.AbpIdentityModelModule
2022-07-18 16:05:05.031 G - Volo.Abp.Caching.AbpCachingModule
2022-07-18 16:05:05.032 G - Volo.Abp.Serialization.AbpSerializationModule
2022-07-18 16:05:05.033 G - Volo.Abp.Identity.AbpIdentityHttpApiClientModule
2022-07-18 16:05:05.034 G - Volo.Abp.Identity.AbpIdentityApplicationContractsModule
2022-07-18 16:05:05.035 G - Volo.Abp.Identity.AbpIdentityDomainSharedModule
2022-07-18 16:05:05.036 G - Volo.Abp.Users.AbpUsersDomainSharedModule
2022-07-18 16:05:05.037 G - Volo.Abp.Features.AbpFeaturesModule
2022-07-18 16:05:05.039 G - Volo.Abp.Users.AbpUsersAbstractionModule
2022-07-18 16:05:05.040 G - Volo.Abp.Application.AbpDddApplicationModule
2022-07-18 16:05:05.042 G - Volo.Abp.GlobalFeatures.AbpGlobalFeaturesModule
2022-07-18 16:05:05.043 G - Volo.Abp.PermissionManagement.AbpPermissionManagementApplicationContractsModule
2022-07-18 16:05:05.045 G - Volo.Abp.PermissionManagement.AbpPermissionManagementDomainSharedModule
2022-07-18 16:05:05.046 G - Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcModule
2022-07-18 16:05:05.047 G - Volo.Abp.AspNetCore.AbpAspNetCoreModule
2022-07-18 16:05:05.048 G - Volo.Abp.ApiVersioning.AbpApiVersioningAbstractionsModule
2022-07-18 16:05:05.049 G - Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcContractsModule
2022-07-18 16:05:05.049 G - Volo.Abp.UI.Navigation.AbpUiNavigationModule
2022-07-18 16:05:05.050 G - Volo.Abp.UI.AbpUiModule
2022-07-18 16:05:05.051 G - Win.Sfs.SettleAccount.SettleAccountEntityFrameworkCoreModule
2022-07-18 16:05:05.051 G - Volo.Abp.PermissionManagement.EntityFrameworkCore.AbpPermissionManagementEntityFrameworkCoreModule
2022-07-18 16:05:05.052 G - Volo.Abp.PermissionManagement.AbpPermissionManagementDomainModule
2022-07-18 16:05:05.053 G - Volo.Abp.SettingManagement.EntityFrameworkCore.AbpSettingManagementEntityFrameworkCoreModule
2022-07-18 16:05:05.054 G - Volo.Abp.SettingManagement.AbpSettingManagementDomainModule
2022-07-18 16:05:05.055 G - Volo.Abp.SettingManagement.AbpSettingManagementDomainSharedModule
2022-07-18 16:05:05.055 G - Volo.Abp.AuditLogging.EntityFrameworkCore.AbpAuditLoggingEntityFrameworkCoreModule
2022-07-18 16:05:05.056 G - Volo.Abp.AuditLogging.AbpAuditLoggingDomainModule
2022-07-18 16:05:05.057 G - Volo.Abp.AuditLogging.AbpAuditLoggingDomainSharedModule
2022-07-18 16:05:05.057 G - Volo.Abp.TenantManagement.EntityFrameworkCore.AbpTenantManagementEntityFrameworkCoreModule
2022-07-18 16:05:05.058 G - Volo.Abp.TenantManagement.AbpTenantManagementDomainModule
2022-07-18 16:05:05.059 G - Volo.Abp.TenantManagement.AbpTenantManagementDomainSharedModule
2022-07-18 16:05:05.060 G - Win.Sfs.SettleAccount.SettleAccountHttpApiModule
2022-07-18 16:05:05.061 G - Volo.Abp.Autofac.AbpAutofacModule
2022-07-18 16:05:05.061 G - Volo.Abp.EntityFrameworkCore.SqlServer.AbpEntityFrameworkCoreSqlServerModule
2022-07-18 16:05:05.062 G - Volo.Abp.AspNetCore.Serilog.AbpAspNetCoreSerilogModule
2022-07-18 16:05:05.062 G - Volo.Abp.BlobStoring.AbpBlobStoringModule
2022-07-18 16:05:05.063 G - Volo.Abp.BlobStoring.FileSystem.AbpBlobStoringFileSystemModule
2022-07-18 16:05:05.064 G - Volo.Abp.BackgroundJobs.Hangfire.AbpBackgroundJobsHangfireModule
2022-07-18 16:05:05.065 G - Volo.Abp.BackgroundJobs.AbpBackgroundJobsAbstractionsModule
2022-07-18 16:05:05.066 G - Volo.Abp.Hangfire.AbpHangfireModule
2022-07-18 16:05:05.155 G Start installing Hangfire SQL objects...
2022-07-18 16:05:57.280 G An exception occurred while trying to perform the migration. Retrying...
System.Data.SqlClient.SqlException (0x80131904): A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
---> System.ComponentModel.Win32Exception (53): 找不到网络路径。
at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, Boolean applyTransientFaultHandling, String accessToken)
at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
at System.Data.SqlClient.SqlConnection.Open()
at Hangfire.SqlServer.SqlServerStorage.CreateAndOpenConnection()
at Hangfire.SqlServer.SqlServerStorage.UseConnection[T](DbConnection dedicatedConnection, Func`2 func)
at Hangfire.SqlServer.SqlServerStorage.UseConnection(DbConnection dedicatedConnection, Action`1 action)
at Hangfire.SqlServer.SqlServerStorage.Initialize()
ClientConnectionId:00000000-0000-0000-0000-000000000000
Error Number:53,State:0,Class:20
2022-07-18 16:05:57.297 G An exception occurred while trying to perform the migration. Retrying...
System.Data.SqlClient.SqlException (0x80131904): A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
---> System.ComponentModel.Win32Exception (53): 找不到网络路径。
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
at System.Data.SqlClient.SqlConnection.Open()
at Hangfire.SqlServer.SqlServerStorage.CreateAndOpenConnection()
at Hangfire.SqlServer.SqlServerStorage.UseConnection[T](DbConnection dedicatedConnection, Func`2 func)
at Hangfire.SqlServer.SqlServerStorage.UseConnection(DbConnection dedicatedConnection, Action`1 action)
at Hangfire.SqlServer.SqlServerStorage.Initialize()
ClientConnectionId:00000000-0000-0000-0000-000000000000
Error Number:53,State:0,Class:20
2022-07-18 16:05:57.305 G An exception occurred while trying to perform the migration.
System.Data.SqlClient.SqlException (0x80131904): A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
---> System.ComponentModel.Win32Exception (53): 找不到网络路径。
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
at System.Data.SqlClient.SqlConnection.Open()
at Hangfire.SqlServer.SqlServerStorage.CreateAndOpenConnection()
at Hangfire.SqlServer.SqlServerStorage.UseConnection[T](DbConnection dedicatedConnection, Func`2 func)
at Hangfire.SqlServer.SqlServerStorage.UseConnection(DbConnection dedicatedConnection, Action`1 action)
at Hangfire.SqlServer.SqlServerStorage.Initialize()
ClientConnectionId:00000000-0000-0000-0000-000000000000
Error Number:53,State:0,Class:20
2022-07-18 16:05:57.311 G Was unable to perform the Hangfire schema migration due to an exception. Ignore this message unless you've just installed or upgraded Hangfire.
System.Data.SqlClient.SqlException (0x80131904): A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
---> System.ComponentModel.Win32Exception (53): 找不到网络路径。
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
at System.Data.SqlClient.SqlConnection.Open()
at Hangfire.SqlServer.SqlServerStorage.CreateAndOpenConnection()
at Hangfire.SqlServer.SqlServerStorage.UseConnection[T](DbConnection dedicatedConnection, Func`2 func)
at Hangfire.SqlServer.SqlServerStorage.UseConnection(DbConnection dedicatedConnection, Action`1 action)
at Hangfire.SqlServer.SqlServerStorage.Initialize()
ClientConnectionId:00000000-0000-0000-0000-000000000000
Error Number:53,State:0,Class:20
2022-07-18 16:05:57.328 G Starting Hangfire Server using job storage: 'SQL Server: 192.168.0.140@SettleAccountService'
2022-07-18 16:05:57.329 G Using the following options for SQL Server job storage: Queue poll interval: 00:00:15.
2022-07-18 16:05:57.329 G Using the following options for Hangfire Server:
Worker count: 20
Listening queues: 'default'
Shutdown timeout: 00:00:15
Schedule polling interval: 00:00:15
2022-07-18 16:05:57.405 G Execution BackgroundServerProcess is in the Failed state now due to an exception, execution will be retried no more than in 00:00:15
System.Data.SqlClient.SqlException (0x80131904): A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
---> System.ComponentModel.Win32Exception (53): 找不到网络路径。
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
at System.Data.SqlClient.SqlConnection.Open()
at Hangfire.SqlServer.SqlServerStorage.CreateAndOpenConnection()
at Hangfire.SqlServer.SqlServerStorage.UseConnection[T](DbConnection dedicatedConnection, Func`2 func)
at Hangfire.SqlServer.SqlServerStorage.UseConnection(DbConnection dedicatedConnection, Action`1 action)
at Hangfire.SqlServer.SqlServerConnection.AnnounceServer(String serverId, ServerContext context)
at Hangfire.Server.BackgroundServerProcess.CreateServer(BackgroundServerContext context)
at Hangfire.Server.BackgroundServerProcess.Execute(Guid executionId, BackgroundExecution execution, CancellationToken stoppingToken, CancellationToken stoppedToken, CancellationToken shutdownToken)
at Hangfire.Server.BackgroundProcessingServer.RunServer(Guid executionId, Object state)
at Hangfire.Processing.BackgroundExecution.Run(Action`2 callback, Object state)
ClientConnectionId:00000000-0000-0000-0000-000000000000
Error Number:53,State:0,Class:20
2022-07-18 16:05:57.415 G Starting Hangfire Server using job storage: 'SQL Server: 192.168.0.140@SettleAccountService'
2022-07-18 16:05:57.416 G Using the following options for SQL Server job storage: Queue poll interval: 00:00:15.
2022-07-18 16:05:57.417 G Using the following options for Hangfire Server:
Worker count: 20
Listening queues: 'default'
Shutdown timeout: 00:00:15
Schedule polling interval: 00:00:15
2022-07-18 16:05:57.422 G Execution BackgroundServerProcess is in the Failed state now due to an exception, execution will be retried no more than in 00:00:15
System.Data.SqlClient.SqlException (0x80131904): A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
---> System.ComponentModel.Win32Exception (53): 找不到网络路径。
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
at System.Data.SqlClient.SqlConnection.Open()
at Hangfire.SqlServer.SqlServerStorage.CreateAndOpenConnection()
at Hangfire.SqlServer.SqlServerStorage.UseConnection[T](DbConnection dedicatedConnection, Func`2 func)
at Hangfire.SqlServer.SqlServerStorage.UseConnection(DbConnection dedicatedConnection, Action`1 action)
at Hangfire.SqlServer.SqlServerConnection.AnnounceServer(String serverId, ServerContext context)
at Hangfire.Server.BackgroundServerProcess.CreateServer(BackgroundServerContext context)
at Hangfire.Server.BackgroundServerProcess.Execute(Guid executionId, BackgroundExecution execution, CancellationToken stoppingToken, CancellationToken stoppedToken, CancellationToken shutdownToken)
at Hangfire.Server.BackgroundProcessingServer.RunServer(Guid executionId, Object state)
at Hangfire.Processing.BackgroundExecution.Run(Action`2 callback, Object state)
ClientConnectionId:00000000-0000-0000-0000-000000000000
Error Number:53,State:0,Class:20
2022-07-18 16:05:59.122 G Entity Framework Core "5.0.8" initialized '"PermissionManagementDbContext"' using provider '"Microsoft.EntityFrameworkCore.SqlServer"' with options: "QuerySplittingBehavior=SplitQuery "
2022-07-18 16:05:59.144 G An error occurred using the connection to database '"ABP"' on server '"192.168.0.140"'.

210
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Logs/log-20220825.txt

@ -1,210 +0,0 @@
2022-08-25 09:13:13.982 G Starting web host.
2022-08-25 09:13:22.800 G User profile is available. Using '"C:\Users\Administrator\AppData\Local\ASP.NET\DataProtection-Keys"' as key repository and Windows DPAPI to encrypt keys at rest.
2022-08-25 09:13:22.916 G Loaded ABP modules:
2022-08-25 09:13:22.918 G - Win.Sfs.SettleAccount.SettleAccountHttpApiHostModule
2022-08-25 09:13:22.918 G - Win.Sfs.SettleAccount.SettleAccountApplicationModule
2022-08-25 09:13:22.919 G - Win.Sfs.SettleAccount.SettleAccountJobModule
2022-08-25 09:13:22.920 G - Win.Sfs.SettleAccount.SettleAccountDomainModule
2022-08-25 09:13:22.921 G - Volo.Abp.Domain.AbpDddDomainModule
2022-08-25 09:13:22.921 G - Volo.Abp.Auditing.AbpAuditingModule
2022-08-25 09:13:22.921 G - Volo.Abp.Data.AbpDataModule
2022-08-25 09:13:22.922 G - Volo.Abp.ObjectExtending.AbpObjectExtendingModule
2022-08-25 09:13:22.922 G - Volo.Abp.Localization.AbpLocalizationAbstractionsModule
2022-08-25 09:13:22.923 G - Volo.Abp.Validation.AbpValidationAbstractionsModule
2022-08-25 09:13:22.923 G - Volo.Abp.Uow.AbpUnitOfWorkModule
2022-08-25 09:13:22.924 G - Volo.Abp.EventBus.Abstractions.AbpEventBusAbstractionsModule
2022-08-25 09:13:22.924 G - Volo.Abp.Json.AbpJsonModule
2022-08-25 09:13:22.925 G - Volo.Abp.Timing.AbpTimingModule
2022-08-25 09:13:22.925 G - Volo.Abp.Localization.AbpLocalizationModule
2022-08-25 09:13:22.926 G - Volo.Abp.VirtualFileSystem.AbpVirtualFileSystemModule
2022-08-25 09:13:22.926 G - Volo.Abp.Settings.AbpSettingsModule
2022-08-25 09:13:22.926 G - Volo.Abp.Security.AbpSecurityModule
2022-08-25 09:13:22.928 G - Volo.Abp.MultiTenancy.AbpMultiTenancyModule
2022-08-25 09:13:22.928 G - Volo.Abp.Threading.AbpThreadingModule
2022-08-25 09:13:22.929 G - Volo.Abp.EventBus.AbpEventBusModule
2022-08-25 09:13:22.929 G - Volo.Abp.Guids.AbpGuidsModule
2022-08-25 09:13:22.930 G - Volo.Abp.ObjectMapping.AbpObjectMappingModule
2022-08-25 09:13:22.930 G - Volo.Abp.ExceptionHandling.AbpExceptionHandlingModule
2022-08-25 09:13:22.931 G - Volo.Abp.Specifications.AbpSpecificationsModule
2022-08-25 09:13:22.931 G - Win.Sfs.SettleAccount.SettleAccountDomainSharedModule
2022-08-25 09:13:22.932 G - Volo.Abp.Validation.AbpValidationModule
2022-08-25 09:13:22.932 G - Win.Sfs.SettleAccount.SettleAccountApplicationContractsModule
2022-08-25 09:13:22.933 G - Volo.Abp.Application.AbpDddApplicationContractsModule
2022-08-25 09:13:22.933 G - Volo.Abp.Authorization.AbpAuthorizationModule
2022-08-25 09:13:22.934 G - Volo.Abp.Authorization.AbpAuthorizationAbstractionsModule
2022-08-25 09:13:22.935 G - Volo.Abp.AutoMapper.AbpAutoMapperModule
2022-08-25 09:13:22.935 G - Volo.Abp.Dapper.AbpDapperModule
2022-08-25 09:13:22.936 G - Volo.Abp.EntityFrameworkCore.AbpEntityFrameworkCoreModule
2022-08-25 09:13:22.936 G - Win.Abp.Snowflakes.AbpSnowflakeGeneratorModule
2022-08-25 09:13:22.937 G - Volo.Abp.Http.Client.IdentityModel.AbpHttpClientIdentityModelModule
2022-08-25 09:13:22.938 G - Volo.Abp.Http.Client.AbpHttpClientModule
2022-08-25 09:13:22.938 G - Volo.Abp.Http.AbpHttpModule
2022-08-25 09:13:22.939 G - Volo.Abp.Http.AbpHttpAbstractionsModule
2022-08-25 09:13:22.940 G - Volo.Abp.Minify.AbpMinifyModule
2022-08-25 09:13:22.940 G - Volo.Abp.Castle.AbpCastleCoreModule
2022-08-25 09:13:22.941 G - Volo.Abp.IdentityModel.AbpIdentityModelModule
2022-08-25 09:13:22.941 G - Volo.Abp.Caching.AbpCachingModule
2022-08-25 09:13:22.942 G - Volo.Abp.Serialization.AbpSerializationModule
2022-08-25 09:13:22.942 G - Volo.Abp.Identity.AbpIdentityHttpApiClientModule
2022-08-25 09:13:22.944 G - Volo.Abp.Identity.AbpIdentityApplicationContractsModule
2022-08-25 09:13:22.946 G - Volo.Abp.Identity.AbpIdentityDomainSharedModule
2022-08-25 09:13:22.946 G - Volo.Abp.Users.AbpUsersDomainSharedModule
2022-08-25 09:13:22.947 G - Volo.Abp.Features.AbpFeaturesModule
2022-08-25 09:13:22.947 G - Volo.Abp.Users.AbpUsersAbstractionModule
2022-08-25 09:13:22.948 G - Volo.Abp.Application.AbpDddApplicationModule
2022-08-25 09:13:22.948 G - Volo.Abp.GlobalFeatures.AbpGlobalFeaturesModule
2022-08-25 09:13:22.949 G - Volo.Abp.PermissionManagement.AbpPermissionManagementApplicationContractsModule
2022-08-25 09:13:22.950 G - Volo.Abp.PermissionManagement.AbpPermissionManagementDomainSharedModule
2022-08-25 09:13:22.950 G - Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcModule
2022-08-25 09:13:22.951 G - Volo.Abp.AspNetCore.AbpAspNetCoreModule
2022-08-25 09:13:22.951 G - Volo.Abp.ApiVersioning.AbpApiVersioningAbstractionsModule
2022-08-25 09:13:22.952 G - Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcContractsModule
2022-08-25 09:13:22.952 G - Volo.Abp.UI.Navigation.AbpUiNavigationModule
2022-08-25 09:13:22.953 G - Volo.Abp.UI.AbpUiModule
2022-08-25 09:13:22.954 G - Win.Sfs.SettleAccount.SettleAccountEntityFrameworkCoreModule
2022-08-25 09:13:22.954 G - Volo.Abp.PermissionManagement.EntityFrameworkCore.AbpPermissionManagementEntityFrameworkCoreModule
2022-08-25 09:13:22.955 G - Volo.Abp.PermissionManagement.AbpPermissionManagementDomainModule
2022-08-25 09:13:22.956 G - Volo.Abp.SettingManagement.EntityFrameworkCore.AbpSettingManagementEntityFrameworkCoreModule
2022-08-25 09:13:22.956 G - Volo.Abp.SettingManagement.AbpSettingManagementDomainModule
2022-08-25 09:13:22.957 G - Volo.Abp.SettingManagement.AbpSettingManagementDomainSharedModule
2022-08-25 09:13:22.957 G - Volo.Abp.AuditLogging.EntityFrameworkCore.AbpAuditLoggingEntityFrameworkCoreModule
2022-08-25 09:13:22.958 G - Volo.Abp.AuditLogging.AbpAuditLoggingDomainModule
2022-08-25 09:13:22.958 G - Volo.Abp.AuditLogging.AbpAuditLoggingDomainSharedModule
2022-08-25 09:13:22.960 G - Volo.Abp.TenantManagement.EntityFrameworkCore.AbpTenantManagementEntityFrameworkCoreModule
2022-08-25 09:13:22.961 G - Volo.Abp.TenantManagement.AbpTenantManagementDomainModule
2022-08-25 09:13:22.961 G - Volo.Abp.TenantManagement.AbpTenantManagementDomainSharedModule
2022-08-25 09:13:22.962 G - Win.Sfs.SettleAccount.SettleAccountHttpApiModule
2022-08-25 09:13:22.963 G - Volo.Abp.Autofac.AbpAutofacModule
2022-08-25 09:13:22.963 G - Volo.Abp.EntityFrameworkCore.SqlServer.AbpEntityFrameworkCoreSqlServerModule
2022-08-25 09:13:22.964 G - Volo.Abp.AspNetCore.Serilog.AbpAspNetCoreSerilogModule
2022-08-25 09:13:22.965 G - Volo.Abp.BlobStoring.AbpBlobStoringModule
2022-08-25 09:13:22.965 G - Volo.Abp.BlobStoring.FileSystem.AbpBlobStoringFileSystemModule
2022-08-25 09:13:22.966 G - Volo.Abp.BackgroundJobs.Hangfire.AbpBackgroundJobsHangfireModule
2022-08-25 09:13:22.966 G - Volo.Abp.BackgroundJobs.AbpBackgroundJobsAbstractionsModule
2022-08-25 09:13:22.967 G - Volo.Abp.Hangfire.AbpHangfireModule
2022-08-25 09:13:23.050 G Start installing Hangfire SQL objects...
2022-08-25 09:14:15.326 G An exception occurred while trying to perform the migration. Retrying...
System.Data.SqlClient.SqlException (0x80131904): A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
---> System.ComponentModel.Win32Exception (53): 找不到网络路径。
at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, Boolean applyTransientFaultHandling, String accessToken)
at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
at System.Data.SqlClient.SqlConnection.Open()
at Hangfire.SqlServer.SqlServerStorage.CreateAndOpenConnection()
at Hangfire.SqlServer.SqlServerStorage.UseConnection[T](DbConnection dedicatedConnection, Func`2 func)
at Hangfire.SqlServer.SqlServerStorage.UseConnection(DbConnection dedicatedConnection, Action`1 action)
at Hangfire.SqlServer.SqlServerStorage.Initialize()
ClientConnectionId:00000000-0000-0000-0000-000000000000
Error Number:53,State:0,Class:20
2022-08-25 09:14:15.334 G An exception occurred while trying to perform the migration. Retrying...
System.Data.SqlClient.SqlException (0x80131904): A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
---> System.ComponentModel.Win32Exception (53): 找不到网络路径。
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
at System.Data.SqlClient.SqlConnection.Open()
at Hangfire.SqlServer.SqlServerStorage.CreateAndOpenConnection()
at Hangfire.SqlServer.SqlServerStorage.UseConnection[T](DbConnection dedicatedConnection, Func`2 func)
at Hangfire.SqlServer.SqlServerStorage.UseConnection(DbConnection dedicatedConnection, Action`1 action)
at Hangfire.SqlServer.SqlServerStorage.Initialize()
ClientConnectionId:00000000-0000-0000-0000-000000000000
Error Number:53,State:0,Class:20
2022-08-25 09:14:15.338 G An exception occurred while trying to perform the migration.
System.Data.SqlClient.SqlException (0x80131904): A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
---> System.ComponentModel.Win32Exception (53): 找不到网络路径。
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
at System.Data.SqlClient.SqlConnection.Open()
at Hangfire.SqlServer.SqlServerStorage.CreateAndOpenConnection()
at Hangfire.SqlServer.SqlServerStorage.UseConnection[T](DbConnection dedicatedConnection, Func`2 func)
at Hangfire.SqlServer.SqlServerStorage.UseConnection(DbConnection dedicatedConnection, Action`1 action)
at Hangfire.SqlServer.SqlServerStorage.Initialize()
ClientConnectionId:00000000-0000-0000-0000-000000000000
Error Number:53,State:0,Class:20
2022-08-25 09:14:15.344 G Was unable to perform the Hangfire schema migration due to an exception. Ignore this message unless you've just installed or upgraded Hangfire.
System.Data.SqlClient.SqlException (0x80131904): A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
---> System.ComponentModel.Win32Exception (53): 找不到网络路径。
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
at System.Data.SqlClient.SqlConnection.Open()
at Hangfire.SqlServer.SqlServerStorage.CreateAndOpenConnection()
at Hangfire.SqlServer.SqlServerStorage.UseConnection[T](DbConnection dedicatedConnection, Func`2 func)
at Hangfire.SqlServer.SqlServerStorage.UseConnection(DbConnection dedicatedConnection, Action`1 action)
at Hangfire.SqlServer.SqlServerStorage.Initialize()
ClientConnectionId:00000000-0000-0000-0000-000000000000
Error Number:53,State:0,Class:20
2022-08-25 09:14:15.358 G Starting Hangfire Server using job storage: 'SQL Server: 192.168.0.140@SettleAccountService'
2022-08-25 09:14:15.359 G Using the following options for SQL Server job storage: Queue poll interval: 00:00:15.
2022-08-25 09:14:15.359 G Using the following options for Hangfire Server:
Worker count: 20
Listening queues: 'default'
Shutdown timeout: 00:00:15
Schedule polling interval: 00:00:15
2022-08-25 09:14:15.386 G Execution BackgroundServerProcess is in the Failed state now due to an exception, execution will be retried no more than in 00:00:15
System.Data.SqlClient.SqlException (0x80131904): A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
---> System.ComponentModel.Win32Exception (53): 找不到网络路径。
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
at System.Data.SqlClient.SqlConnection.Open()
at Hangfire.SqlServer.SqlServerStorage.CreateAndOpenConnection()
at Hangfire.SqlServer.SqlServerStorage.UseConnection[T](DbConnection dedicatedConnection, Func`2 func)
at Hangfire.SqlServer.SqlServerStorage.UseConnection(DbConnection dedicatedConnection, Action`1 action)
at Hangfire.SqlServer.SqlServerConnection.AnnounceServer(String serverId, ServerContext context)
at Hangfire.Server.BackgroundServerProcess.CreateServer(BackgroundServerContext context)
at Hangfire.Server.BackgroundServerProcess.Execute(Guid executionId, BackgroundExecution execution, CancellationToken stoppingToken, CancellationToken stoppedToken, CancellationToken shutdownToken)
at Hangfire.Server.BackgroundProcessingServer.RunServer(Guid executionId, Object state)
at Hangfire.Processing.BackgroundExecution.Run(Action`2 callback, Object state)
ClientConnectionId:00000000-0000-0000-0000-000000000000
Error Number:53,State:0,Class:20
2022-08-25 09:14:15.397 G Starting Hangfire Server using job storage: 'SQL Server: 192.168.0.140@SettleAccountService'
2022-08-25 09:14:15.398 G Using the following options for SQL Server job storage: Queue poll interval: 00:00:15.
2022-08-25 09:14:15.399 G Using the following options for Hangfire Server:
Worker count: 20
Listening queues: 'default'
Shutdown timeout: 00:00:15
Schedule polling interval: 00:00:15
2022-08-25 09:14:15.403 G Execution BackgroundServerProcess is in the Failed state now due to an exception, execution will be retried no more than in 00:00:15
System.Data.SqlClient.SqlException (0x80131904): A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
---> System.ComponentModel.Win32Exception (53): 找不到网络路径。
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
at System.Data.SqlClient.SqlConnection.Open()
at Hangfire.SqlServer.SqlServerStorage.CreateAndOpenConnection()
at Hangfire.SqlServer.SqlServerStorage.UseConnection[T](DbConnection dedicatedConnection, Func`2 func)
at Hangfire.SqlServer.SqlServerStorage.UseConnection(DbConnection dedicatedConnection, Action`1 action)
at Hangfire.SqlServer.SqlServerConnection.AnnounceServer(String serverId, ServerContext context)
at Hangfire.Server.BackgroundServerProcess.CreateServer(BackgroundServerContext context)
at Hangfire.Server.BackgroundServerProcess.Execute(Guid executionId, BackgroundExecution execution, CancellationToken stoppingToken, CancellationToken stoppedToken, CancellationToken shutdownToken)
at Hangfire.Server.BackgroundProcessingServer.RunServer(Guid executionId, Object state)
at Hangfire.Processing.BackgroundExecution.Run(Action`2 callback, Object state)
ClientConnectionId:00000000-0000-0000-0000-000000000000
Error Number:53,State:0,Class:20
2022-08-25 09:14:17.028 G Entity Framework Core "5.0.8" initialized '"PermissionManagementDbContext"' using provider '"Microsoft.EntityFrameworkCore.SqlServer"' with options: "QuerySplittingBehavior=SplitQuery "
2022-08-25 09:14:17.049 G An error occurred using the connection to database '"ABP"' on server '"192.168.0.140"'.

15055
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Logs/log-20221012.txt

File diff suppressed because it is too large

11
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Startup.cs

@ -1,8 +1,11 @@
using System.IO.Compression;
using System.Linq;
using System.Text.RegularExpressions;
using Coravel;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Mvc.ApplicationModels;
using Microsoft.AspNetCore.ResponseCompression;
using Microsoft.AspNetCore.Routing;
using Microsoft.AspNetCore.Server.Kestrel.Core;
using Microsoft.AspNetCore.StaticFiles;
@ -18,6 +21,13 @@ public class Startup
{
public void ConfigureServices(IServiceCollection services)
{
services.Configure<GzipCompressionProviderOptions>(options => options.Level = CompressionLevel.Fastest);
services.AddResponseCompression(options =>
{
options.EnableForHttps = true;
options.Providers.Add<GzipCompressionProvider>();
options.MimeTypes = ResponseCompressionDefaults.MimeTypes.Concat(new[] { "image/svg+xml" });
});
services.AddScheduler();
services.AddSignalR(o => o.EnableDetailedErrors = true);
JobHostdService.AddService(services);
@ -47,6 +57,7 @@ public class Startup
public void Configure(IApplicationBuilder app, IWebHostEnvironment env, ILoggerFactory loggerFactory)
{
app.UseResponseCompression();
app.UseRouting();
app.UseEndpoints(endpoints => endpoints.MapHub<PageHub>("/api/hub"));
app.ApplicationServices.UseScheduler(scheduler =>

4
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/home.js

@ -1,7 +1,5 @@
import html from "html";
import Md from "../components/markdown/index.js";
export default {
components: { Md },
template: html`<md name="home" />`,
template: html`<a href="../assets/导入模版.zip" target="blank">导入模板下载</a>`,
};

6
code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/Materials/MaterialDtoBase.cs

@ -285,13 +285,13 @@ namespace Win.Sfs.SettleAccount.Entities.Materials
/// <summary>
/// 厂内物料号
/// </summary>
[ExporterHeader(DisplayName = "厂内物料号")]
[Display(Name = "厂内物料号")]
public string MaterialCode { set; get; }
/// <summary>
/// 厂内物料描述
/// </summary>
[ExporterHeader(DisplayName = "厂内物料描述")]
[Display(Name = "厂内物料描述")]
public string MaterialDesc { set; get; }
}
@ -357,12 +357,14 @@ namespace Win.Sfs.SettleAccount.Entities.Materials
/// <summary>
/// 厂内物料号
/// </summary>
[Display(Name = "厂内物料号")]
[ExporterHeader(DisplayName = "厂内物料号")]
public string MaterialCode { set; get; }
/// <summary>
/// 厂内物料描述
/// </summary>
[Display(Name = "厂内物料描述")]
[ExporterHeader(DisplayName = "厂内物料描述")]
public string MaterialDesc { set; get; }
}

12
code/src/SettleAccount.sln

@ -6,16 +6,10 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Shared", "Shared", "{61F213
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Modules", "Modules", "{A6179011-0C7F-440A-A559-B9C90BB0229A}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "MicroServices", "MicroServices", "{1C1B27DC-DEDF-4067-9791-660302A09C66}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Win.Abp", "Win.Abp", "{1853A9CF-DB6D-4612-A6EA-8815E011F2C9}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BaseService.Host", "Modules\BaseService\BaseService.Host\BaseService.Host.csproj", "{7E3E3AEB-C7C4-495D-B963-8A3B4DB0CB3B}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Win.Sfs.Shared", "Shared\Win.Sfs.Shared\Win.Sfs.Shared.csproj", "{9B9733F4-F13E-428E-AA4A-BA68432FE3B8}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Hosts", "Hosts", "{5E5C6DAB-A70E-44A9-93C9-4A2C4AE837A7}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "SettleAccount", "SettleAccount", "{9C23A6A4-4292-47F2-89C1-94993C61DBB5}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SettleAccount.Domain", "Modules\SettleAccount\src\SettleAccount.Domain\SettleAccount.Domain.csproj", "{187B2ECE-6EF4-4C06-8110-FEAD592C343B}"
@ -62,10 +56,6 @@ Global
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{7E3E3AEB-C7C4-495D-B963-8A3B4DB0CB3B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{7E3E3AEB-C7C4-495D-B963-8A3B4DB0CB3B}.Debug|Any CPU.Build.0 = Debug|Any CPU
{7E3E3AEB-C7C4-495D-B963-8A3B4DB0CB3B}.Release|Any CPU.ActiveCfg = Release|Any CPU
{7E3E3AEB-C7C4-495D-B963-8A3B4DB0CB3B}.Release|Any CPU.Build.0 = Release|Any CPU
{9B9733F4-F13E-428E-AA4A-BA68432FE3B8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{9B9733F4-F13E-428E-AA4A-BA68432FE3B8}.Debug|Any CPU.Build.0 = Debug|Any CPU
{9B9733F4-F13E-428E-AA4A-BA68432FE3B8}.Release|Any CPU.ActiveCfg = Release|Any CPU
@ -144,7 +134,6 @@ Global
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{1853A9CF-DB6D-4612-A6EA-8815E011F2C9} = {61F21377-02D4-40C5-80B3-F0C2999CE6B7}
{7E3E3AEB-C7C4-495D-B963-8A3B4DB0CB3B} = {5E5C6DAB-A70E-44A9-93C9-4A2C4AE837A7}
{9B9733F4-F13E-428E-AA4A-BA68432FE3B8} = {61F21377-02D4-40C5-80B3-F0C2999CE6B7}
{9C23A6A4-4292-47F2-89C1-94993C61DBB5} = {A6179011-0C7F-440A-A559-B9C90BB0229A}
{187B2ECE-6EF4-4C06-8110-FEAD592C343B} = {9C23A6A4-4292-47F2-89C1-94993C61DBB5}
@ -154,7 +143,6 @@ Global
{C40757EE-FAA8-4D49-9C78-CFB54996FFDE} = {9C23A6A4-4292-47F2-89C1-94993C61DBB5}
{0C90B328-0E35-426C-8E9D-AA4A06A17E7C} = {9C23A6A4-4292-47F2-89C1-94993C61DBB5}
{5E340FD0-13A3-40ED-9E3D-6A0A73AFDCDB} = {9C23A6A4-4292-47F2-89C1-94993C61DBB5}
{37844A66-3402-43B6-8AC1-86D0F56A51CA} = {5E5C6DAB-A70E-44A9-93C9-4A2C4AE837A7}
{E9292DE0-20BC-4885-ADED-F429BA821A28} = {9C23A6A4-4292-47F2-89C1-94993C61DBB5}
{A38483F2-F00B-4171-94C1-9A4EF96BF39A} = {61F21377-02D4-40C5-80B3-F0C2999CE6B7}
{50D7C4D1-188C-4553-A477-500DD9B4FBE2} = {1853A9CF-DB6D-4612-A6EA-8815E011F2C9}

Loading…
Cancel
Save