Can't use Dependency injection

I am getting the same exceptions.