We are trying to implement a custom service using [aspnetboilerplate](/questions/tagged/aspnetboilerplate "show questions tagged 'aspnetboilerplate'") .NET Core Multi Page Application template. We are receiving an error in **index.js** file when trying to hit a service method.

Find herewith the code sections for understanding. Any help on this will be really helpful for us.

```
public interface IMyTaskAppService : IApplicationService
{
    Task<List<string>> GetMyTasks(int input);
}

public class MyTaskAppService : IMyTaskAppService
{
    private readonly IMyTaskRepository _mytaskRepository;

    public MyTaskAppService(IMyTaskRepository mytaskRepository)
    {
        _mytaskRepository = mytaskRepository;
    }

    Task<List<string>> IMyTaskAppService.GetMyTasks(int input)
    {
        return _mytaskRepository.GetMyTasks(input);
    }

}

```

![Error Screenshot 1](https://i.stack.imgur.com/xZcBn.jpg)

![Error Screenshot 2](https://i.stack.imgur.com/f7QOy.jpg)

[Index.Js](https://i.stack.imgur.com/PCWCr.jpg)

[Index.Js Error (Lowercase)](https://i.stack.imgur.com/OmuYG.jpg)

[Console Output Screenshot](https://i.stack.imgur.com/8RMmQ.jpg)