2
Vote

Error activating ModelMetadataProvider

description

When I add a ninject mvc turbine this error show up every time at the start in debug mode.
 
Error activating ModelMetadataProvider
No matching bindings are available, and the type is not self-bindable.
Activation path:
1) Request for ModelMetadataProvider
 
Suggestions:
1) Ensure that you have defined a binding for ModelMetadataProvider.
2) If the binding was defined in a module, ensure that the module has been loaded into the kernel.
3) Ensure you have not accidentally created more than one kernel.
4) If you are using constructor arguments, ensure that the parameter name matches the constructors parameter name.
5) If you are using automatic module loading, ensure the search path and filters are correct.
 
When I try to use structure map instead this error show up
 
StructureMap Exception Code: 202
No Default Instance defined for PluginFamily System.Web.Mvc.ModelMetadataProvider, System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35

comments