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 7542601
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T08:12:39+00:00 2026-05-30T08:12:39+00:00

i am using ninject in a wcf web service.This web service is hosted in

  • 0

i am using ninject in a wcf web service.This web service is hosted in a project created as a “ASP.NET MVC 2 Empty Web Application”.

It is using the references for Ninject.dll v2 and Ninject.Extensions.Wcf.dll v1.

The markup for the service file is

<%@ ServiceHost 
Language="C#"
Debug="true"
Service="wcf_ninject.Service1"
CodeBehind="Service1.svc.cs"
Factory="Ninject.Extensions.Wcf.NinjectServiceHostFactory" %>

The global.asax is inheriting from NinjectWcfApplication

public class Global : NinjectWcfApplication
{
    protected override IKernel CreateKernel()
    {
        return new StandardKernel(new WCFNinjectModule());
    }
}

with

public class WCFNinjectModule : NinjectModule
{
    public override void Load()
    {
        Bind<IRepository>().To<EFRepository>();
        // rest of bindings
    }
}

and the only constructor for the service is:

public Service1(IRepository repository)
{
    _repo = repository;
}

Most of the time works fine, but from time to time i get the error:

“Error activating Service1 More than one matching bindings are available”

But as said i am unable to find a reproduction path.

  • 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-05-30T08:12:41+00:00Added an answer on May 30, 2026 at 8:12 am

    I assume you are using an older version. I can remember there was a multithreading issue with implicit bindings in 2.1 or even 2.0. It should be fixed in 2.2 and 3.0.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am new to ninject using ninject 2.0. My application is hosted in asp.net
I'm using NInject with NInject.Web.Mvc. To start with, I've created a simple test project
I am building an application using Ninject and ASP.NET MVC 3. Is it possible
In my asp.net mvc application I'm using Ninject as a DI framework. My HttpAccountService
I am having trouble injecting AutoMapper into an ASP.NET MVC 2 application using Ninject.
We are using ASP.net MVC. Which of these is the best DI framework Ninject
I'm using Ninject, Fluent NHibernate and ASP.NET MVC. Up until now everything has been
I am using AJAX-enable web services in my ASP.NET MVC3 application and I want
I am using Ninject 2 with Asp.Net MVC 3. I have following module. public
I am using asp.net mvc 3. I am using ninject 2.2.1.0 protected void Application_Start()

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.