- Fri Jun 16, 2017 7:13 am
#20200
I have got a class extending DomainService abstract class as below:
The following line does not work:
because of:
Abp.AbpException: Must set LocalizationSourceName before, in order to get LocalizationSource
Just wonder where the proper place if for setting the LocalizationSourceName, like it was set in MyCarParkControllerBase, but in Core (Domain) layer?
By the way the there are 2 usages of localization in the UserRegistrationManager class as:
That are failing due to the same issue!
Cheers,
Code: Select all
public class ScheduleManager : DomainService, IScheduleManager
The following line does not work:
Code: Select all
throw new UserFriendlyException(L("ScheduleIsNotValid"));
because of:
Abp.AbpException: Must set LocalizationSourceName before, in order to get LocalizationSource
Just wonder where the proper place if for setting the LocalizationSourceName, like it was set in MyCarParkControllerBase, but in Core (Domain) layer?
By the way the there are 2 usages of localization in the UserRegistrationManager class as:
Code: Select all
Line 96 >>> throw new UserFriendlyException(L("UnknownTenantId{0}", tenantId));
Line 101 >>> throw new UserFriendlyException(L("TenantIdIsNotActive{0}", tenantId));
That are failing due to the same issue!
Cheers,