ninject Questions
2
Solved
I am having problems creating a custom UserStore using dependency injection when creating an ApplicationUserManager using the OWIN request pipeline.
Background
I am trying to migrate the user fun...
Dime asked 23/6, 2014 at 18:56
1
Solved
This is kind of a similar question I asked here a few weeks ago with one significant change in requirement.
I have a new and unique (I have not found anything like this in my stackoverflow search)...
Milklivered asked 19/1, 2015 at 19:3
1
Solved
I want to bind IServiceProvider to Ninject IKernel implementation. What is the point to use
Bind<IKernel>().ToConstant(this).InTransientScope();
binding from Ninject sources ?
This is t...
3
Why is it not possible for me to do the following in Ninect?
Kernel.Bind<IPresenter>.To<DefaultPresenter>();
Kernel.Bind<IPresenter>.To<DashboardPresenter>();
Kernel.Bind&l...
1
Solved
I have an MVC 5 application that uses EF 6 and implements Repository pattern with dependency injection using the DI container Ninject. The connection string for the dbcontext is stored in the Web.c...
Cardialgia asked 27/12, 2014 at 17:46
1
I've got an MVC4/WebApi project that I'm trying to wire up with Ninject 3. I would like to share a particular object across a number of entities within request scope, however I understand that I ne...
Conjurer asked 9/12, 2013 at 21:35
1
We're using Ninject 3.0 to resolve a class.
Fairly boring standard stuff:
IKernel kernel = GetKernel();
var foo = kernel.Get<IFoo>();
However on one particular machine, we're getting a...
Taxpayer asked 9/7, 2013 at 1:47
2
I'm testing Ninject, but following the how-to, i find it impossible to make it work. The information on the web is so messy even contradictory. I'm developping a website in MVC 4 on visual studio 2...
Nevers asked 21/11, 2013 at 17:29
3
Solved
Note: Now that I've typed this out, I have to apologize for the super long question, however, I think all the code and information presented here is in some way relevant.
Okay, I'm getting odd "...
Eniwetok asked 3/4, 2010 at 17:21
2
Solved
I'm using Visual Studio 2012 Express for Web.
When I try to add a view, I get an error saying:
The templates had the following 1 error(s)
C:\Program Files\Microsoft Visual Studio
11.0\Common7\ID...
Weichsel asked 1/2, 2013 at 0:19
1
Solved
is it possible to inject dependencies into the WebApiConfig class using Ninject?
This is my WebApiConfig class.
public static class WebApiConfig
{
public static void Register(HttpConfiguratio...
Debrahdebrecen asked 25/11, 2014 at 13:33
4
Solved
I'm writing a custom Authorization Filter for asp.net mvc 3. I need to inject a userservice into the class but I have no idea how to do this.
public class AuthorizeAttribute : FilterAttribute, IAu...
Rhododendron asked 31/5, 2011 at 20:51
1
The problem started when I was trying to use the solution below to use Ninject 3 with a MVC 4 RC Web Api project:
http://www.peterprovost.org/blog/2012/06/19/adding-ninject-to-web-api/
This solutio...
Reservation asked 26/6, 2012 at 20:25
1
Solved
We are using Ninject in an ASP.NET Web Api application, and we bind our DbContext with InRequestScope. This works well with most of our requests, because they do all their work synchronously, so th...
Meleager asked 6/11, 2014 at 8:44
1
Solved
I'm using Ninject.MVC3 with WebAPI.
Originally, I was using the implementation of NinjectResolver and NinjectScope as outlined here,i.e. using _kernel.BeginBlock(),
I noticed that BeginBlock() get...
Cornew asked 3/11, 2014 at 6:34
3
Solved
According to this article description custom-membership-provider-with-repository-injection
I implement the custom Membership provide with inject.
Custom Membership provider
using Ninject;
publ...
Beaudette asked 19/1, 2013 at 7:48
1
Solved
I'm trying to configure DI for an Excel VSTO project.
The generated code-behind for a given worksheet offers me a event called Startup, which is reponsible to set event handlers for events like S...
Senter asked 7/9, 2012 at 14:6
2
Solved
What is the most elegant way to inject UserManager and UserStore into a controller using ninject? For example, the context can be injected like this:
kernel.Bind<EmployeeContext>().ToSelf()...
Axseed asked 31/5, 2014 at 8:33
8
Solved
So after much screwing around I finally got Ninject wired in and compiling in my MVC4 application. The problem I was running into is the IDependencyScope interface no longer exists from what I can ...
Burnout asked 13/7, 2012 at 12:9
1
Solved
What is the correct lifecycle management of the ConnectionMultiplexer instance in a web scenario.
As I understand it manages individual requests by pipelining them and thus reduces the negative ef...
Changeable asked 14/9, 2014 at 10:28
3
Solved
I have used the NuGet Ninject MVC3 extension and have been unable to get it to inject into a controller upon request. It doesn't seem to have bound, as MVC is looking for the paramaterless construc...
Newsboy asked 15/1, 2013 at 17:32
1
Solved
I have a Web Api 2 App, with two classes that both depend on another class, and i'm using ninject to resolve the dependancies.
public class AuthorizationServerProvider : OAuthAuthorizationServerPr...
Biramous asked 17/8, 2014 at 16:9
4
Solved
I'm at the moment working on a MVC3 Web application and ecountered a new problem with Ninject.
I'm using the following code in my controller:
public class TestController : Controller
{
public I...
Lieb asked 6/12, 2010 at 17:17
1
Solved
Does anyone have a clear instruction on how to setup Ninject in WCF? been googling around but I cant see any updated guidelines on how to use Ninject in WCF.
Melissiamelita asked 3/8, 2014 at 7:29
3
Solved
It's a Web API 2 project.
When I implement DI using Ninject, I got an error message
An error occurred when trying to create a controller of type 'TokenController'. Make sure that the controller h...
Budworth asked 5/11, 2013 at 4:33
© 2022 - 2024 — McMap. All rights reserved.