LightInject does not allow specific classes that have not been registered in the container. You can provide a backup method (RegisterFallback), but when resolving dependencies in it using the same container, it raises a StackOverflowException.
source share