Open Closed

Dynamic Web Api Call Failed #313

razy69 created

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=, Culture=neutral, PublicKeyToken=null]]","exceptionType":"Castle.MicroKernel.ComponentActivator.ComponentActivatorException"

please help me,how can i fix this problem?

2 Answer(s)
  • 0
    iyhammad created

    Please make sure the call is post not get.

  • 0
    hikalkan created


    Can you check the complete error message (probably in Logs folder in your web project). Maybe your IGroupRepository is not implemented?