The service definition with type '{0}' could not be registered because it would violate the singleton service definition ...

The service definition with type '{0}' could not be registered because it would violate the singleton service definition constraint. Either a singleton service definition of this type is already registered or this is a singleton definition and other service definitions of this type are already registered.