Base solution for your next web application

Activities of "razy69"

hi, I created a Group Appservice: public class GroupAppService : ApplicationService, IGroupAppService { private readonly IGroupRepository _groupRepository;

    public GroupAppService(IGroupRepository groupRepository)
    {
        _groupRepository = groupRepository;
    }

    public GetGroupsOutput GetGroups()
    {
        var groups = _groupRepository.GetAllList();
        return new GetGroupsOutput { Groups = Mapper.Map<List<GroupDto>>(groups) };
    }

}

and I'm trying to call the GetGroups method by web api in my browser: <a class="postlink" href="http://localhost:6234/api/services/app/group/GetGroups">http://localhost:6234/api/services/app/group/GetGroups</a>

but i get an error like this: {"message":"An error has occurred.","exceptionMessage":"ComponentActivator: could not proxy Abp.WebApi.Controllers.Dynamic.DynamicApiController`1[[MetaJoin.Groups.IGroupAppService, MetaJoin.Application, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]","exceptionType":"Castle.MicroKernel.ComponentActivator.ComponentActivatorException"

please help me,how can i fix this problem?

Question

hi, im trying to use boilerplate framework in my projct. but i have some error like this:

**Can't create component 'MetaJoin.Inventory.UOM.UOMsAppService' as it has dependencies to be satisfied.

'MetaJoin.Inventory.UOM.UOMsAppService' is waiting for the following dependencies:

  • Service 'MetaJoin.Inventory.Repositories.IUomRepository' which was not registered.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: Castle.MicroKernel.Handlers.HandlerException: Can't create component 'MetaJoin.Inventory.UOM.UOMsAppService' as it has dependencies to be satisfied.

'MetaJoin.Inventory.UOM.UOMsAppService' is waiting for the following dependencies:

  • Service 'MetaJoin.Inventory.Repositories.IUomRepository' which was not registered.**

how can i fix this problem?? please help me. tanks.

Showing 1 to 2 of 2 entries