Most voted "ninject" questions
Ninject is an open source dependency injector for . NET.
Learn more…15 questions
Sort by count of
-
6
votes2
answers878
viewsMVC Ioc Builder without parameters
Hello. My application is triggering an error while trying to create a new item. I’m getting this error message: No constructor without parameters has been set for this object. But my controller…
-
3
votes1
answer502
viewsNinject 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…
-
2
votes1
answer62
viewsHow to work with Parallel using the Ninject library
How can you configure ninject to provide an instance of a given object for each thread that calls it? The ninject kernel can be run before a code with parallelism or it is necessary to instantiate a…
-
1
votes2
answers8286
viewsNo constructor without parameters has been defined for this object
I am building an ASP.NET MVC5 application using DDD and have separated my Ioc layer from my web application. In my controllers I have constructs with parameter to receive an instance of my service…
-
1
votes2
answers570
viewsIoc with Ninject
I am developing an application using Ioc and Ninject for dependency injection, and came across the following problem: When uploading my application to the server I got the following error: Someone…
-
1
votes2
answers347
viewsNinject Not creating the Ninjectwebcommon class
I’m installing the package of ninject, but the class is not created Ninjectwebcommon automatically in the folder App_start. Does anyone have any solution? I am installing the version Ninject.MVC5.…
-
1
votes2
answers291
viewsProblem when performing delegate bind in ninject
I am developing an application with ninject for Ioc and Entity framework, but when I perform the bind with delegate it gives this error: <Message>An error has occurred.</Message>…
-
1
votes1
answer344
viewsNinject dependency injection for more than one web project
Hello, in an application I have a 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…
asp.net-mvc dependency-injection asp.net-web-api ninjectasked 9 years, 1 month ago Edmar Munhoz 1,057 -
1
votes0
answers154
viewsThe number of generic arguments provided is not equal to the aridity of the generic type definition. Parameter name: instantiation
I am having a problem developing an application in Asp.net MVC with IOC, Automapper and all other screens work perfectly, just not that of Drivers. couldn’t identify the mistake, could you help me?…
-
1
votes1
answer1071
viewsInjection of Depension with Ninject C#
I am developing an application that has 4 layers Dominio, Infra, Servico e Web When I have access to a route for example Home/Index he says that there is no constructor without parameters, my…
-
1
votes1
answer970
viewsDoubt about how to implement a C# Dependency Injection using Ninject
I have a C# project with Windows Forms. I have a question about how to make an implementation between two layers of my application: Application and WindowsForms. I need to carry one DataGridView…
-
1
votes0
answers14
viewsNinject in a Classlibrary and ASP.NET MVC
To understand, I’m going to set the stage. The application uses ninject with repositories and services, but some models have navigation properties, all in the same project In MVC there is the object…
-
1
votes1
answer441
viewsIOC - No constructor without parameters has been defined for this object
I’m doing a project and they’re layered apart, I call it DDD. But I’m making the following mistake: No constructor without parameters has been defined for this object. I’m using Ioc, follow below as…
-
0
votes0
answers253
viewsNinject - System.Missingmethodexception: No constructor without parameters has been defined for this object
I’m in the wrong; No constructor without parameters has been defined for this object. Description: An untreated exception occurred during the execution of current web request. Examine stack tracking…
-
-1
votes1
answer222
viewsError calling a method in ASP.NET Web API and Ninject
I am getting error while trying to call a method from a Web API. Declaration of the method in ApiController public class AcessoController : ApiController { [HttpGet] public UsuarioModel…