Advertisement
Guest User

Ninject error

a guest
Jan 30th, 2015
501
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. Ninject.ActivationException: Error activating ModelValidatorProvider using binding from ModelValidatorProvider to NinjectDefaultModelValidatorProvider
  2. A cyclical dependency was detected between the constructors of two services.
  3.  
  4. Activation path:
  5. 3) Injection of dependency ModelValidatorProvider into parameter defaultModelValidatorProviders of constructor of type DefaultModelValidatorProviders
  6. 2) Injection of dependency DefaultModelValidatorProviders into parameter defaultModelValidatorProviders of constructor of type NinjectDefaultModelValidatorProvider
  7. 1) Request for ModelValidatorProvider
  8.  
  9. Suggestions:
  10. 1) Ensure that you have not declared a dependency for ModelValidatorProvider on any implementations of the service.
  11. 2) Consider combining the services into a single one to remove the cycle.
  12. 3) Use property injection instead of constructor injection, and implement IInitializable
  13. if you need initialization logic to be run after property values have been injected.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement