Oh, only a module. very simple module.
Thank you for your quick reply. I can work toward now.
Sorry, I forget to replace connection string...
Thank you! It work well now.
Let'm give you more detail description.
Yes, I am using Blazor Server. With the same code, If I use Lepton, there is no error. After I replace/change the theme from Lepton to LeptonX, I will get above error.
Good question, I will prepare a new ABP solution for you. After I create it by ABP Suite.
At first, I placed the code in PreConfigureServices. Failed as before. Then, I placed the code in ConfigureServices, Failed again.
I place the code in ConfigureServices and PreConfigureServices.
Configure<AbpLocalizationOptions>(options =>
{
options.DefaultResourceType = typeof(BlazorOneResource);
});
But I still get the same error as before.
I have checked the source code of ABP Framework. Volo.Abp.FeatureManagement Volo.Abp.FeatureManagement.Blazor /Components/FeatureManagementModal.razor line 65.
I past the code as below
<SelectItem Value="@item.Value">
@CreateStringLocalizer(item.DisplayText.ResourceName).GetString(item.DisplayText.Name)
</SelectItem>
Sometimes, CreateStringLocalizer(item.DisplayText.ResourceName) return a null object. So, GetString will throw exception.
You may think these senarios: Such as I change the file name /class name of Resource file. But a feature setting has already been stored into database many months ago...