Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Error changing theme #11123


User avatar
0
onecontact created

Prerequisites

Please answer the following questions before submitting an issue. YOU MAY DELETE THE PREREQUISITES SECTION.

  • What is your product version? 11.1
  • What is your product type (Angular or MVC)? Angular
  • What is product framework type (.net framework or .net core)? .net core
  • What are the theme settings? default <br> Hello, we're getting this error when we want to change the default theme:

<br> <br> <br> <br>

  • at Abp.AspNetCore.Mvc.Auditing.HttpContextClientInfoProvider.GetComputerName()
  • INFO 2022-06-20 15:38:36,162 [106 ] Microsoft.AspNetCore.Hosting.Diagnostics - Request starting HTTP/2 OPTIONS https://localhost:44301/api/services/app/UiCustomizationSettings/UpdateDefaultUiManagementSettings - - INFO 2022-06-20 15:38:36,162 [106 ] pNetCore.Cors.Infrastructure.CorsService - CORS policy execution successful. INFO 2022-06-20 15:38:36,162 [106 ] Microsoft.AspNetCore.Hosting.Diagnostics - Request finished HTTP/2 OPTIONS https://localhost:44301/api/services/app/UiCustomizationSettings/UpdateDefaultUiManagementSettings - - - 204 - - 0.6032ms INFO 2022-06-20 15:38:36,164 [106 ] Microsoft.AspNetCore.Hosting.Diagnostics - Request starting HTTP/2 PUT https://localhost:44301/api/services/app/UiCustomizationSettings/UpdateDefaultUiManagementSettings application/json-patch+json 646 INFO 2022-06-20 15:38:36,165 [106 ] pNetCore.Cors.Infrastructure.CorsService - CORS policy execution successful. INFO 2022-06-20 15:38:36,174 [106 ] ft.AspNetCore.Routing.EndpointMiddleware - Executing endpoint 'Skanix.Enterprise.Configuration.UiCustomizationSettingsAppService.UpdateDefaultUiManagementSettings (Skanix.Enterprise.Application)' INFO 2022-06-20 15:38:36,179 [106 ] c.Infrastructure.ControllerActionInvoker - Route matched with {area = "app", action = "UpdateDefaultUiManagementSettings", controller = "UiCustomizationSettings"}. Executing controller action with signature System.Threading.Tasks.Task UpdateDefaultUiManagementSettings(Skanix.Enterprise.Configuration.Dto.ThemeSettingsDto) on controller Skanix.Enterprise.Configuration.UiCustomizationSettingsAppService (Skanix.Enterprise.Application). INFO 2022-06-20 15:38:36,202 [106 ] osoft.EntityFrameworkCore.Infrastructure - Entity Framework Core 6.0.5 initialized 'EnterpriseDbContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.4' with options: None INFO 2022-06-20 15:38:36,541 [70 ] osoft.EntityFrameworkCore.Infrastructure - Entity Framework Core 6.0.5 initialized 'EnterpriseDbContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.4' with options: None ERROR 2022-06-20 15:38:36,570 [68 ] Mvc.ExceptionHandling.AbpExceptionFilter - There is no setting defined with name: App.UiManagement.DarkMode Abp.AbpException: There is no setting defined with name: App.UiManagement.DarkMode at Abp.Configuration.SettingDefinitionManager.GetSettingDefinition(String name) at Abp.Configuration.SettingManager.GetSettingValueInternalAsync(String name, Nullable1 tenantId, Nullable1 userId, Boolean fallbackToDefault) at Skanix.Enterprise.Web.UiCustomization.Metronic.UiThemeCustomizerBase.ResetDarkModeSettingsAsync(UserIdentifier user) in C:\git\Onecontact.Portal\src\Skanix.Enterprise.Web.Core\UiCustomization\Metronic\UiThemeCustomizerBase.cs:line 76 at Skanix.Enterprise.Web.UiCustomization.Metronic.Theme3UiCustomizer.UpdateTenantUiManagementSettingsAsync(Int32 tenantId, ThemeSettingsDto settings, UserIdentifier changerUser) in C:\git\Onecontact.Portal\src\Skanix.Enterprise.Web.Core\UiCustomization\Metronic\Theme3UiCustomizer.cs:line 99 at Skanix.Enterprise.Configuration.UiCustomizationSettingsAppService.UpdateDefaultUiManagementSettings(ThemeSettingsDto settings) in C:\git\Onecontact.Portal\src\Skanix.Enterprise.Application\Configuration\UiCustomizationSettingsAppService.cs:line 74 at lambda_method3516(Closure , Object ) at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)

This is the data of the abp.settings table:

<br> we appreciate your useful help.

regards

<br> <br>


1 Answer(s)