Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Ninject.ActivationException: Error activating ModelValidatorProvider using binding from ModelValidatorProvider to NinjectDefaultModelValidatorProvider
- A cyclical dependency was detected between the constructors of two services.
- Activation path:
- 3) Injection of dependency ModelValidatorProvider into parameter defaultModelValidatorProviders of constructor of type DefaultModelValidatorProviders
- 2) Injection of dependency DefaultModelValidatorProviders into parameter defaultModelValidatorProviders of constructor of type NinjectDefaultModelValidatorProvider
- 1) Request for ModelValidatorProvider
- Suggestions:
- 1) Ensure that you have not declared a dependency for ModelValidatorProvider on any implementations of the service.
- 2) Consider combining the services into a single one to remove the cycle.
- 3) Use property injection instead of constructor injection, and implement IInitializable
- if you need initialization logic to be run after property values have been injected.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement