An unhandled exception has occurred while executing the request.
Volo.Abp.AbpException: No theme registered! Use AbpThemingOptions to register themes.
at Volo.Abp.AspNetCore.Mvc.UI.Theming.DefaultThemeSelector.GetCurrentThemeInfo()
at Volo.Abp.AspNetCore.Mvc.UI.Theming.DefaultThemeManager.GetCurrentTheme()
at Volo.Abp.AspNetCore.Mvc.UI.Theming.DefaultThemeManager.get_CurrentTheme()
解决方案:
没有总结出来,估计是ABP的模块依赖没写对。
参考一下我的web项目,一体的,没有分层
Portal.Web.csproj
PortalWebModule.cs文件,并不包括AbpThemingOptions的任何设置
[DependsOn(
typeof(PortalApplicationModule),
typeof(PortalEntityFrameworkCoreModule),
typeof(AbpAutofacModule),
typeof(AbpLocalizationModule),
typeof(AbpAuthorizationModule),
typeof(AbpAspNetCoreAuthenticationOpenIdConnectModule),
//typeof(AbpAspNetCoreMvcUiModule),
typeof(AbpAspNetCoreAuthenticationJwtBearerModule),
//typeof(AbpIdentityWebModule),
typeof(AbpAspNetCoreSerilogModule),
typeof(AbpSwashbuckleModule)
)]
public class PortalWebModule : AbpModule
有的人说是这句影响的
if (!env.IsDevelopment())
{
//app.UseErrorPage();
}