Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error activating ModelMetadataProvider #16

Open
maranganator opened this issue Oct 21, 2011 · 9 comments
Open

Error activating ModelMetadataProvider #16

maranganator opened this issue Oct 21, 2011 · 9 comments

Comments

@maranganator
Copy link

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

@darrencauthon
Copy link
Contributor

What version of MvcTurbine are you using? I'm not able to replicate these issues with the latest version, with either Ninject or StructureMap.

@Necroskillz
Copy link

I confirm this issue with Ninject. Im using the latest version from NuGet (3.4). The exception shows up once, when the application starts, once you hit mvc templated helper in a view (like @Html.TextBoxFor<>()). You also have to be in debug mode.

I would really appreciate resolving this issue, since people on my team are constantly complaining about it.

@darrencauthon
Copy link
Contributor

Ah, that helps -- I wasn't able to reproduce the issue, but I didn't test it against one of the MVC helpers.

I'll take a look tonight and see what I can find. Sorry for the issue, I'm sure we can figure it out pretty quickly.

@darrencauthon
Copy link
Contributor

Ok, I was able to reproduce the issue last night, but I haven't been able to resolve it. I don't yet see the problem we're getting with Ninject versus some of the other IoC containers. Still working...

@Necroskillz
Copy link

Hi, any progress?

@darrencauthon
Copy link
Contributor

... sorry, haven't figured it out yet. I took a quick look at it late last week, but I couldn't figure out what was going on with Ninject. I'll take another look this week.

Sorry -- I want to resolve this for you, but fighting these IoC containers takes a lot of energy.

@Necroskillz
Copy link

I noticed the issue is not there anymore when i tried the latest version from source control. Are you guys planning to push a new version to NuGet anytime soon?

@darrencauthon
Copy link
Contributor

The issue is still there as far as I know, as I haven't fixed it. Are you sure?

@Necroskillz
Copy link

Yeah, pretty sure. Try it yourself to be sure, but to me it seems that the problem just went away.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants