Questions tagged as 'ninject'

1
answer

Ninject does not load dependencies. Asp.NET MVC C #

I'm using NinjectWebCommom to work with Inject. I installed the package via Nuget and automatically it creates a class named "NinjectWebCommon" in the App_Start folder, as the documentation itself says. I need to know why it is not working corre...
asked by 31.07.2015 / 04:03
1
answer

Working with Parallel using the NInject library

How can I configure ninject to make it available to an instance of a given object for each thread that calls it? Can the ninject kernel be run before a code with parallelism or is it necessary to instantiate a new kernel inside the thread cod...
asked by 14.04.2016 / 23:26
1
answer

Injection dependency with Ninject for more than one web project

Hello, in an application I have an MVC web project and a Web API project, in the MVC project I already have the Ninject configured with the dependency injections and I would like to take advantage of it in this Web API project, I know that maybe...
asked by 03.11.2015 / 12:41
2
answers

No parameterless constructor was defined for this object

I'm building an ASP.NET MVC5 application using DDD and I've separated my IoC layer from my web application. In my controllers I have parameterized constructors to receive an instance of my class of services. I am using Ninject, in this I created...
asked by 22.01.2015 / 19:49
2
answers

IoC with Ninject

I'm developing an application using IoC and Ninject for dependency injection, and I came across the following problem: When uploading my application to the server I get the following error: Can anyone help me with how to resolve this e...
asked by 17.03.2015 / 23:19
1
answer

Ninject Not creating the NinjectWebCommon class

I'm installing the ninject package , but the NinjectWebCommon class is not automatically created in the App_Start folder. Does anyone have a solution? I'm installing the Ninject.MVC5 version.     
asked by 29.01.2018 / 16:43
1
answer

Doubt about implementing a Dependency Injection in C # using Ninject

I have a C # project with Windows Forms. I have a question about how to do an implementation between two layers of my application: Application and WindowsForms . I need to load a DataGridView with a list of "PessoaTip...
asked by 14.02.2017 / 23:31
1
answer

Injection of Dependency with Ninject C #

I am developing an application that has 4 layers Dominio, Infra, Servico e Web When I have access a route for example Home/Index it says that there is no constructor without parameters, my constructor looks like this: public Home...
asked by 21.10.2016 / 13:31
0
answers

The number of generic arguments provided is not equal to the generic definition definition. Parameter name: instantiation

I'm having a problem while developing an application in Asp.net MVC with IOC, Automapper and all other screens work perfectly, just not for Drivers. Unable to identify the error, could they help me? Follow the controllers, and the other classes,...
asked by 02.12.2015 / 12:55
2
answers

Problem when performing delegate bind on ninject

I'm developing an application with ninject for IoC and entity framework, but when I bind with delegate it gives this error: <Message>An error has occurred.</Message> <ExceptionMessage> Error activating IntPtr No matching bind...
asked by 02.09.2015 / 20:19