ObjectExtensionManager.Instance.Modules().ConfigureIdentity(identity =>
{
identity.ConfigureUser(user =>
{
user.AddOrUpdateProperty<string>(UserConsts.LoanOfficer,
options =>
{
options.Attributes.Add(new RequiredAttribute());
options.Attributes.Add(new StringLengthAttribute(UserConsts.MaxLoanOfficerLength));
//options.UI.OnEditForm.IsVisible = false;
});
user.Validators.Add(context =>
{
//help check exist??
});
});
});
private static void ConfigureExtraProperties()
{
ObjectExtensionManager.Instance.Modules().ConfigureIdentity(identity =>
{
identity.ConfigureUser(user =>
{
user.AddOrUpdateProperty<string>(UserConsts.LoanOfficer,
options =>
{
options.Attributes.Add(new RequiredAttribute());
options.Attributes.Add(new StringLengthAttribute(UserConsts.MaxLoanOfficerLength));
});
user.AddOrUpdateProperty<string>(UserConsts.BranchCode,
options =>
{
options.Attributes.Add(new RequiredAttribute());
options.Attributes.Add(new StringLengthAttribute(UserConsts.MaxBranchCodeLength));
});
});
});
}
ABP Framework version: v6.0.2
UI type: Angular
DB provider: EF Core
Tiered (MVC) or Identity Server Separated (Angular): yes
Exception message and stack trace:
Steps to reproduce the issue:"
[11:52:45 INF] - Volo.Abp.AuditLogging.AbpAuditLoggingDomainModule [11:52:45 INF] - Volo.Abp.Caching.AbpCachingModule [11:52:45 INF] - Volo.Abp.Serialization.AbpSerializationModule [11:52:45 INF] - Volo.Abp.BackgroundJobs.AbpBackgroundJobsDomainModule [11:52:45 INF] - Volo.Abp.BackgroundJobs.AbpBackgroundJobsModule [11:52:45 INF] - Volo.Abp.BackgroundJobs.AbpBackgroundJobsAbstractionsModule [11:52:45 INF] - Volo.Abp.AutoMapper.AbpAutoMapperModule [11:52:45 INF] - Volo.Abp.FeatureManagement.AbpFeatureManagementDomainModule [11:52:45 INF] - Volo.Abp.Identity.AbpIdentityProDomainModule [11:52:45 INF] - Volo.Abp.Identity.AbpIdentityDomainModule [11:52:45 INF] - Volo.Abp.Users.AbpUsersDomainModule [11:52:45 INF] - Volo.Abp.Users.AbpUsersAbstractionModule [11:52:45 INF] - Volo.Abp.Ldap.AbpLdapModule [11:52:45 INF] - Volo.Abp.Gdpr.AbpGdprAbstractionsModule [11:52:45 INF] - Volo.Abp.PermissionManagement.Identity.AbpPermissionManagementDomainIdentityModule [11:52:45 INF] - Volo.Abp.PermissionManagement.AbpPermissionManagementDomainModule [11:52:45 INF] - Volo.Abp.Authorization.AbpAuthorizationModule [11:52:45 INF] - Volo.Abp.OpenIddict.AbpOpenIddictDomainModule [11:52:45 INF] - Volo.Abp.PermissionManagement.OpenIddict.AbpPermissionManagementDomainOpenIddictModule [11:52:45 INFfail: Volo.Abp.Identity.AbpIdentityProDomainModule[0] ABP-LIC-0020 - License code not found! Ensure that your appsettings.json or appsettings.secrets.json has "AbpLicenseCode" key with your license code. ] - Volo.Abp.SettingManagement.AbpSettingManagementDomainModule [11:52:45 fail: Volo.Saas.SaasDomainModule[0] ABP-LIC-ERROR - License check failed for 'Volo.Saas.Domain-v6.0.2.0'.
For more information, contact to license@abp.io.
INF] - Volo.Saas.SaasDomainModule [11:52:45 INF] - Volo.Abp.TextTemplateManagement.TextTemplateManagementDomainModule [11:52:45 INF] - Volo.Abp.TextTemplating.AbpTextTemplatingModule [11:52:45 INF] - Volo.Abp.TextTemplating.Scriban.AbpTextTemplatingScribanModule [11:52:45 INF] - Volo.Abp.TextTemplating.AbpTextTemplatingCoreModule [11:52:45 INF] - Volo.Abp.LanguageManagement.LanguageManagementDomainModule [11:52:45 INF] - Volo.Abp.Commercial.SuiteTemplates.VoloAbpCommercialSuiteTemplatesModule [11:52:45 INF] - Volo.Abp.Emailing.AbpEmailingModule [11:52:45 INF] - Volo.Abp.Gdpr.AbpGdprDomainModule [11:52:45 INF] D:\TechPlus\Pln\Code\Tp.Tam\aspnet-core\src\Tp.Tam.WindowsService\src\Tp.Tam.WindowsService\bin\Debug\net6.0\Tp.Tam.WindowsService.exe (process 4240) exited with code -42. To automatically close the console when debugging stops, enable Tools->Options->Debugging->Automatically close the console when debugging stops. Press any key to close this window . . .
2022-12-16 10:08:25.909 +07:00 [ERR] GetHealthReport threw an exception when trying to get report from /health-status configured with name BookStore Health Status.
System.InvalidOperationException: An invalid request URI was provided. Either the request URI must be an absolute URI or BaseAddress must be set.
at System.Net.Http.HttpClient.PrepareRequestMessage(HttpRequestMessage request)
at System.Net.Http.HttpClient.CheckRequestBeforeSend(HttpRequestMessage request)
at System.Net.Http.HttpClient.SendAsync(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationToken cancellationToken)
at System.Net.Http.HttpClient.GetAsync(Uri requestUri)
at HealthChecks.UI.Core.HostedService.HealthCheckReportCollector.GetHealthReport(HealthCheckConfiguration configuration)
2022-12-16 10:08:26.192 +07:00 [INF] Application started. Press Ctrl+C to shut down.
2022-12-16 10:08:26.192 +07:00 [INF] Hosting environment: Production
2022-12-16 10:08:26.192 +07:00 [INF] Content root path:
2022-12-16 10:08:27.532 +07:00 [WRN] ERR Error running script (call to f_3915ee22fda531a1d5661f2523d0443fd35ff0a4): @user_script:2: @user_script: 2: Wrong number of args calling Redis command From Lua script
StackExchange.Redis.RedisServerException: ERR Error running script (call to f_3915ee22fda531a1d5661f2523d0443fd35ff0a4): @user_script:2: @user_script: 2: Wrong number of args calling Redis command From Lua script
at Volo.Abp.Caching.StackExchangeRedis.AbpRedisCache.SetManyAsync(IEnumerable`1 items, DistributedCacheEntryOptions options, CancellationToken token)
at Volo.Abp.Caching.DistributedCache`2.<>c__DisplayClass54_0.<<SetManyAsync>g__SetRealCache|0>d.MoveNext()
2022-12-16 10:08:27.565 +07:00 [WRN] ERR Error running script (call to f_3915ee22fda531a1d5661f2523d0443fd35ff0a4): @user_script:2: @user_script: 2: Wrong number of args calling Redis command From Lua script
StackExchange.Redis.RedisServerException: ERR Error running script (call to f_3915ee22fda531a1d5661f2523d0443fd35ff0a4): @user_script:2: @user_script: 2: Wrong number of args calling Redis command From Lua script
at Volo.Abp.Caching.StackExchangeRedis.AbpRedisCache.SetManyAsync(IEnumerable`1 items, DistributedCacheEntryOptions options, CancellationToken token)
at Volo.Abp.Caching.DistributedCache`2.<>c__DisplayClass54_0.<<SetManyAsync>g__SetRealCache|0>d.MoveNext()
2022-12-16 10:08:27.628 +07:00 [INF] CORS policy execution successful.
2022-12-16 10:08:27.642 +07:00 [INF] Request starting HTTP/2 GET https://192.168.100.36:44357/api/abp/application-configuration - -
2022-12-16 10:08:27.646 +07:00 [INF] Request finished HTTP/2 OPTIONS https://192.168.100.36:44357/api/abp/application-configuration - - - 204 - - 1798.2304ms
2022-12-16 10:08:27.649 +07:00 [INF] CORS policy execution successful.
2022-12-16 10:08:27.810 +07:00 [ERR] Exception occurred while processing message.
System.InvalidOperationException: IDX20803: Unable to obtain configuration from: 'https://192.168.100.36:44356/.well-known/openid-configuration'.
---> System.IO.IOException: IDX20804: Unable to retrieve document from: 'https://192.168.100.36:44356/.well-known/openid-configuration'.
---> System.Net.Http.HttpRequestException: The SSL connection could not be established, see inner exception.
---> System.Security.Authentication.AuthenticationException: The remote certificate is invalid according to the validation procedure: RemoteCertificateNameMismatch, RemoteCertificateChainErrors
at System.Net.Security.SslStream.SendAuthResetSignal(ProtocolToken message, ExceptionDispatchInfo exception)
at System.Net.Security.SslStream.CompleteHandshake(SslAuthenticationOptions sslAuthenticationOptions)
at System.Net.Security.SslStream.ForceAuthenticationAsync[TIOAdapter](TIOAdapter adapter, Boolean receiveFirst, Byte[] reAuthenticationData, Boolean isApm)
at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken)
--- End of inner exception stack trace ---
at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.AddHttp11ConnectionAsync(HttpRequestMessage request)
at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1.WaitWithCancellationAsync(CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.GetHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
at System.Net.Http.DiagnosticsHandler.SendAsyncCore(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
at Microsoft.IdentityModel.Protocols.HttpDocumentRetriever.GetDocumentAsync(String address, CancellationToken cancel)
--- End of inner exception stack trace ---
at Microsoft.IdentityModel.Protocols.HttpDocumentRetriever.GetDocumentAsync(String address, CancellationToken cancel)
at Microsoft.IdentityModel.Protocols.OpenIdConnect.OpenIdConnectConfigurationRetriever.GetAsync(String address, IDocumentRetriever retriever, CancellationToken cancel)
at Microsoft.IdentityModel.Protocols.ConfigurationManager`1.GetConfigurationAsync(CancellationToken cancel)
--- End of inner exception stack trace ---
at Microsoft.IdentityModel.Protocols.ConfigurationManager`1.GetConfigurationAsync(CancellationToken cancel)
at Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler.HandleAuthenticateAsync()
at Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler.HandleAuthenticateAsync()
at Microsoft.AspNetCore.Authentication.AuthenticationHandler`1.AuthenticateAsync()
at Microsoft.AspNetCore.Authentication.AuthenticationService.AuthenticateAsync(HttpContext context, String scheme)
at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
at Volo.Abp.AspNetCore.Security.AbpSecurityHeadersMiddleware.InvokeAsync(HttpContext context, RequestDelegate next)
at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.<>c__DisplayClass6_1.<<UseMiddlewareInterface>b__1>d.MoveNext()
--- End of stack trace from previous location ---
at Microsoft.AspNetCore.Localization.RequestLocalizationMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.RequestLocalization.AbpRequestLocalizationMiddleware.InvokeAsync(HttpContext context, RequestDelegate next)
at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.<>c__DisplayClass6_1.<<UseMiddlewareInterface>b__1>d.MoveNext()
--- End of stack trace from previous location ---
at Microsoft.AspNetCore.Server.IIS.Core.IISHttpContextOfT`1.ProcessRequestAsync()
2022-12-16 10:08:27.820 +07:00 [ERR] Connection ID "18158513706953080864", Request ID "40000021-0002-fc00-b63f-84710c7967bb": An unhandled exception was thrown by the application.
System.InvalidOperationException: IDX20803: Unable to obtain configuration from: 'https://192.168.100.36:44356/.well-known/openid-configuration'.
---> System.IO.IOException: IDX20804: Unable to retrieve document from: 'https://192.168.100.36:44356/.well-known/openid-configuration'.
---> System.Net.Http.HttpRequestException: The SSL connection could not be established, see inner exception.
---> System.Security.Authentication.AuthenticationException: The remote certificate is invalid according to the validation procedure: RemoteCertificateNameMismatch, RemoteCertificateChainErrors
at System.Net.Security.SslStream.SendAuthResetSignal(ProtocolToken message, ExceptionDispatchInfo exception)
at System.Net.Security.SslStream.CompleteHandshake(SslAuthenticationOptions sslAuthenticationOptions)
at System.Net.Security.SslStream.ForceAuthenticationAsync[TIOAdapter](TIOAdapter adapter, Boolean receiveFirst, Byte[] reAuthenticationData, Boolean isApm)
at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken)
--- End of inner exception stack trace ---
at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.AddHttp11ConnectionAsync(HttpRequestMessage request)
at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1.WaitWithCancellationAsync(CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.GetHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
at System.Net.Http.DiagnosticsHandler.SendAsyncCore(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
at Microsoft.IdentityModel.Protocols.HttpDocumentRetriever.GetDocumentAsync(String address, CancellationToken cancel)
--- End of inner exception stack trace ---
at Microsoft.IdentityModel.Protocols.HttpDocumentRetriever.GetDocumentAsync(String address, CancellationToken cancel)
at Microsoft.IdentityModel.Protocols.OpenIdConnect.OpenIdConnectConfigurationRetriever.GetAsync(String address, IDocumentRetriever retriever, CancellationToken cancel)
at Microsoft.IdentityModel.Protocols.ConfigurationManager`1.GetConfigurationAsync(CancellationToken cancel)
--- End of inner exception stack trace ---
at Microsoft.IdentityModel.Protocols.ConfigurationManager`1.GetConfigurationAsync(CancellationToken cancel)
at Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler.HandleAuthenticateAsync()
at Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler.HandleAuthenticateAsync()
at Microsoft.AspNetCore.Authentication.AuthenticationHandler`1.AuthenticateAsync()
at Microsoft.AspNetCore.Authentication.AuthenticationService.AuthenticateAsync(HttpContext context, String scheme)
at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
at Volo.Abp.AspNetCore.Security.AbpSecurityHeadersMiddleware.InvokeAsync(HttpContext context, RequestDelegate next)
at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.<>c__DisplayClass6_1.<<UseMiddlewareInterface>b__1>d.MoveNext()
--- End of stack trace from previous location ---
at Microsoft.AspNetCore.Localization.RequestLocalizationMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.RequestLocalization.AbpRequestLocalizationMiddleware.InvokeAsync(HttpContext context, RequestDelegate next)
at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.<>c__DisplayClass6_1.<<UseMiddlewareInterface>b__1>d.MoveNext()
--- End of stack trace from previous location ---
at Microsoft.AspNetCore.Server.IIS.Core.IISHttpContextOfT`1.ProcessRequestAsync()
2022-12-16 10:08:27.826 +07:00 [INF] Request finished HTTP/2 GET https://192.168.100.36:44357/api/abp/application-configuration - - - 500 - - 183.9352ms
2022-12-16 10:08:36.245 +07:00 [ERR] GetHealthReport threw an exception when trying to get report from /health-status configured with name BookStore Health Status.
System.InvalidOperationException: An invalid request URI was provided. Either the request URI must be an absolute URI or BaseAddress must be set.
at System.Net.Http.HttpClient.PrepareRequestMessage(HttpRequestMessage request)
at System.Net.Http.HttpClient.CheckRequestBeforeSend(HttpRequestMessage request)
at System.Net.Http.HttpClient.SendAsync(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationToken cancellationToken)
at System.Net.Http.HttpClient.GetAsync(Uri requestUri)
at HealthChecks.UI.Core.HostedService.HealthCheckReportCollector.GetHealthReport(HealthCheckConfiguration configuration)
2022-12-16 10:08:36.252 +07:00 [INF] Notification is sent on same window time.
Error deploy to IIS on Server
ABP Framework version: v6.0.0
UI type: Angular
DB provider: EF Core
Tiered (MVC) or Identity Server Separated (Angular): no
Exception message and stack trace:
2022-12-08 15:09:36.809 +07:00 [INF] Request starting HTTP/2 GET https://192.168.100.238:44345/connect/authorize?response_type=code&client_id=TestDep_Swagger&redirect_uri=https%3A%2F%2F192.168.100.238%3A44345%2Fswagger%2Foauth2-redirect.html&state=VGh1IERlYyAwOCAyMDIyIDE1OjA5OjM2IEdNVCswNzAwIChJbmRvY2hpbmEgVGltZSk%3D - - 2022-12-08 15:09:36.822 +07:00 [INF] The request address matched a server endpoint: "Authorization". 2022-12-08 15:09:36.850 +07:00 [INF] The authorization request was successfully extracted: { "response_type": "code", "client_id": "TestDep_Swagger", "redirect_uri": "https://192.168.100.238:44345/swagger/oauth2-redirect.html", "state": "VGh1IERlYyAwOCAyMDIyIDE1OjA5OjM2IEdNVCswNzAwIChJbmRvY2hpbmEgVGltZSk=" }. 2022-12-08 15:09:37.032 +07:00 [INF] Client validation failed because 'https://192.168.100.238:44345/swagger/oauth2-redirect.html' was not a valid redirect_uri for TestDep_Swagger. 2022-12-08 15:09:37.032 +07:00 [INF] The authorization request was rejected because the redirect_uri was invalid: 'https://192.168.100.238:44345/swagger/oauth2-redirect.html'. 2022-12-08 15:09:37.059 +07:00 [INF] Request finished HTTP/2 GET https://192.168.100.238:44345/connect/authorize?response_type=code&client_id=TestDep_Swagger&redirect_uri=https%3A%2F%2F192.168.100.238%3A44345%2Fswagger%2Foauth2-redirect.html&state=VGh1IERlYyAwOCAyMDIyIDE1OjA5OjM2IEdNVCswNzAwIChJbmRvY2hpbmEgVGltZSk%3D - - - 302 - - 250.5526ms 2022-12-08 15:09:37.063 +07:00 [INF] Request starting HTTP/2 GET https://192.168.100.238:44345/Error?httpStatusCode=400 - -
Steps to reproduce the issue: