The error occurred when gRPC attempted to create an instance of the invoked service (the service that overrides SendMessage method). Specifically, the injection of the IAnotherService interface into the service's constructor failed because IAnotherService was not registered in the DI container.