Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9261761
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T13:12:29+00:00 2026-06-18T13:12:29+00:00

I am using ninject in an asp.net web api project and have started receiving

  • 0

I am using ninject in an asp.net web api project and have started receiving this intermittent ninject error:

“Error loading Ninject component ICache
No such component has been registered in the kernel’s component container.
“

I’m using:

  • Ninject 3.0.1.10
  • Ninject.MVC3 3.0.0.6
  • Ninject.Web.Common 3.0.0.7

They are all brought into my project with NuGet I load my Modules in IocConfig.RegisterIoc and have made no other changes or tweaks.

It may be unrelated but the problem started occurring at around the same time as I started injecting IKernel into one of my constructors. I didn’t set up a binding for this having read about the “special resolver”.

I have read through a number of similar questions on here:

Ninject + "Error loading Ninject component ICache"

Ninject and ChildKernel in MVC3 project: "Error loading Ninject component ICache"

Randomly-Occurring Ninject Exception: "Error loading Ninject component ICache"

Although in each of these cases the OP has the same error as me the solution is not appropriate – I am not creating child kernels and I’m not using the bugged version of ninject.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T13:12:30+00:00Added an answer on June 18, 2026 at 1:12 pm

    Found the solution and thought I would share.

    The problem was that I was Using Ninject.MVC3 which seems to be wrong package for Web-API.

    Instead I need to use Ninject.Web.WebApi-RC package as described by this post:

    http://www.eyecatch.no/blog/2012/06/using-ninject-with-webapi-rc/

    Steps I followed for a fix are

    • Uninstalled Ninject.MVC3 and Ninject.Web.Common
    • delete all of the ninject files from the App_Start folder.
    • install Ninject.Web.Common and Ninject.Web.WebApi-RC from nuget
    • Load my modules in NinjectWebCommon.RegisterServices()
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have an ASP.NET Web API app which uses Ninject for DI. This works
I've started using Ninject in an ASP.NET MVC 3 project, using the standard boot
I'm putting together a REST service using ASP.NET Web API & Ninject, though I
I have a web application made in asp.net mvc, and i am using Ninject
I'm using the Ninject.Web.Mvc (the MVC 2 version) add-on with ASP.NET MVC 2. This
I have an ASP.NET Web API project, and I want to use oData filters
I am using Ninject in my ASP MVC 3 project, I have modified the
I'm currently using ninject.mvc3 in my asp.net webapi project, and it works fine. I
I'm using Ninject 2 with an ASP.NET MVC web app. All the dependencies are
Using: ASP.NET MVC3 Ninject 2 Fluent nHibernate I have 2 databases (DB1 & DB2).

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.