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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T19:28:49+00:00 2026-05-20T19:28:49+00:00

I have Ninject configured to do DI in an ASP.NET MVC 3 application. This

  • 0

I have Ninject configured to do DI in an ASP.NET MVC 3 application. This is working fine and it injects the proper classes in to my controllers.

When I try and add Ninject.Extensions.Interception to work with my application I start getting an ambiguous match exception. This only happens when I add the Ninject.Extensions.Interception.DynamicProxy assembly. If I remove this assembly then it runs fine again. I also have referenced Ninject.Extensions.Intereception and Castle.Core.

Note that I have not configured interception in the application. I am just adding a reference and this error starts happening.

I am using Ninject 2.2.1.0 and Ninject.Extensions.Interception 2.2.0.0.

private const BindingFlags DefaultBindingFlags =
    BindingFlags.Public |
    BindingFlags.NonPublic |
    BindingFlags.Instance;

public static PropertyInfo GetPropertyFromMethod( this MethodInfo method, Type implementingType )
{
    if ( !method.IsSpecialName )
    {
        return null;
    }

    return implementingType.GetProperty( method.Name.Substring( 4 ), DefaultBindingFlags );
}

Stack trace:

[AmbiguousMatchException: Ambiguous
match found.]
System.RuntimeType.GetPropertyImpl(String
name, BindingFlags bindingAttr, Binder
binder, Type returnType, Type[] types,
ParameterModifier[] modifiers)
+9402677 System.Type.GetProperty(String name,
BindingFlags bindingAttr) +31
Ninject.Extensions.Interception.Infrastructure.Language.ExtensionsForMethodInfo.GetPropertyFromMethod(MethodInfo
method, Type implementingType) in
c:\Projects\Ninject\ninject.extensions.interception\src\Ninject.Extensions.Interception\Infrastructure\Language\ExtensionsForMethodInfo.cs:35
Ninject.Extensions.Interception.Planning.Strategies.InterceptorRegistrationStrategy.Execute(IPlan
plan) in
c:\Projects\Ninject\ninject.extensions.interception\src\Ninject.Extensions.Interception\Planning\Strategies\InterceptorRegistrationStrategy.cs:83
Ninject.Planning.<>c_DisplayClass3.b_1(IPlanningStrategy
s) in
c:\Projects\Ninject\ninject\src\Ninject\Planning\Planner.cs:68
Ninject.Infrastructure.Language.ExtensionsForIEnumerableOfT.Map(IEnumerable1
series, Action
1 action) in
c:\Projects\Ninject\ninject\src\Ninject\Infrastructure\Language\ExtensionsForIEnumerableOfT.cs:23
Ninject.Planning.Planner.GetPlan(Type
type) in
c:\Projects\Ninject\ninject\src\Ninject\Planning\Planner.cs:68
Ninject.Activation.Providers.StandardProvider.Create(IContext
context) in
c:\Projects\Ninject\ninject\src\Ninject\Activation\Providers\StandardProvider.cs:74
Ninject.Activation.Context.Resolve()
in
c:\Projects\Ninject\ninject\src\Ninject\Activation\Context.cs:157
Ninject.KernelBase.b__7(IContext
context) in
c:\Projects\Ninject\ninject\src\Ninject\KernelBase.cs:375

  • 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-20T19:28:49+00:00Added an answer on May 20, 2026 at 7:28 pm

    Fixed in Ninject.Extensions.Interception 2.2.1.0

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

Sidebar

Related Questions

I used to have a standard ASP.NET MVC 3 application that was Ninject-wired via
I am working on an ASP .NET Mvc 3 App and have installed Ninject.Mvc3
I have an ASP.NET MVC 3 application that uses the Ninject.MVC3 extension to setup
I have configured Ninject 2 in an ASP.NET 4.0 project (not MVC) however when
I have Ninject working nicely in an ASP.NET MVC3 web application. I'd like to
I have a pretty standard .NET MVC 3 application that uses Ninject for dependency
I'm using the Ninject.Web.Mvc (the MVC 2 version) add-on with ASP.NET MVC 2. This
I am using Ninject in my ASP MVC 3 project, I have modified the
Clearly, I am missing something. I have an MVC application and have installed Ninject
I have an ASP.NET MVC3 website setup using fluent validation and ninject. The validation

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.