ok, you can create a new projectand reproduce the problem then share it with me. liming.ma@volosoft.com
Are you sure the error is the same? Please check the error logs.
Do not inject other app services into the app service.
I tried by inheriting LitmusAppService
Can you share the code?
hi
You can leave a message on https://github.com/abpframework/abp/issues/763 and I will feedback the team.
'SCV.Litmus.LitmusTenants.CustomTenantAppService' has not been registered.
hi
Try this.
[Dependency(ReplaceServices = true)]
[ExposeServices(typeof(ITenantAppService), typeof(CustomTenantAppService ))]
public class CustomTenantAppService : ApplicationService, ITenantAppService
Please run the Abp.Test1.HttpApi.Host
first.
hi
I will create a demo for this. will info you when it has been done.
https://github.com/abpframework/abp/issues/12783
Open Solution Open in IDE (with Visual Studio) Run abp.test1.DbMigrator (database test1 already created) Run apb.test1.Web.Public
Hi
There is should have an API website, You need to run it first.
Can you share your project structure?
Autofac.Core.Registration.ComponentNotRegisteredException: The requested service 'SCV.Litmus.LitmusTenants.CustomTenantAppService' has not been registered. To avoid this exception, either register a component to provide the service, check for service registration using IsRegistered(), or use the ResolveOptional() method to resolve an optional dependency.
hi
You should use ITenantAppService
in the controller instead of CustomTenantAppService
[Dependency(ReplaceServices = true)]
[ExposeServices(typeof(ITenantAppService))]
public class CustomTenantAppService : ApplicationService, ITenantAppService
Then use the ObjectMapper
property.