In my case, this problem happens when the project has no default (scoped) repository.
So try to configure you repository as the default repository for the project to which your application is assigned.