Support forum for ASP.NET Zero (
By birthdaycensus
#10018 This is what I am having in the Initialize method of my WebApiModule
Code: Select allConfiguration.Modules.AbpWebApi().DynamicApiControllerBuilder
                .ForAll<IApplicationService>(typeof(KolaApplicationModule).Assembly, "app")

                .ForAll<IApplicationService>(typeof(KolaContentApplicationModule).Assembly, "content")

In the KolaContentApplicationModule, I have ICategoryAppService that has a method GetCategory(int id)
I am trying to access this method from the endpoint, /api/services/content/category/GetCategory?id=10
I got the error, "No HTTP resource was found that matches the request URI 'http://localhost:6634/api/services/content/category/GetCategory?id=10'."
But when I move ICategoryAppService to the KolaApplicationModule, I can access it from /api/services/app/category/GetCategory?id=10

Note that KolaContentApplicationModule is in a different project.
In the Initialize method of the KolaContentApplicationModule , I have made the call,

Code: Select allIocManager.RegisterAssemblyByConvention(Assembly.GetExecutingAssembly());

What am I doing wrong, please