ninject.web.mvc Questions
10
I'm developing an ASP.NET Web Api 2.2 with C#, .NET Framework 4.5.1.
After updating my Web.Api to Ninject 3.2.0 I get this error:
Error activating ModelValidatorProvider using binding from ModelV...
Dolichocephalic asked 11/10, 2014 at 7:29
4
Solved
this question is not new, but my problem seems to have a different root than those I have seen so far.
I have a solution containing several projects: two of them are C# MVC4. I installed Ninject.M...
Iorgo asked 29/10, 2014 at 13:50
4
Solved
I am new to MVC, i am following "PRO ASP.NET MVC 4 by Adam Freeman". I am currently working on its 6th chapter. In which i am learning how to use Ninject in MVC 4 for Dependency Injection...
Golightly asked 28/8, 2013 at 11:4
4
Solved
I am new to dependency injection, but happy with Ninject and Ninject.Extensions.Logging to [Inject] my ILogger wherever i need it.
However some DelegatingHandlers are spoiling all the fun.
public...
Othaothe asked 7/2, 2013 at 16:52
2
Solved
I created a binding for HttpContextBase in my NinjectWebCommon.RegisterServices method, but when I try to reference it in my controllers or services I get an error message.
Here's the binding:
ke...
Ethiopian asked 6/6, 2013 at 12:57
3
Solved
I am starting to use Ninject in my MVC5 code-first app. Here's my NinjectWebCommon.cs:
private static IKernel CreateKernel()
{
var kernel = new StandardKernel();
try
{
kernel.Bind<Func<...
Arquit asked 24/6, 2015 at 13:19
2
Solved
I have a custom DataAnnotationsModelValidatorProvider for doing model validation in a more dynamic way then just adding attributes. I tried to add my provide to the global.asax.cs like so:
ModelVa...
Psilocybin asked 2/12, 2011 at 13:11
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
1
Solved
Our project is using asp.Net Web Api and part of our requirements to exanble users to look at the data through Excel, we wanted to introduce OData Feed.
So I installed the oData package:
<pack...
Mcnutt asked 19/9, 2014 at 7:11
1
Solved
I use Ninject mainly as manual binding like bellow. Which is working properly
kernel.Bind<TestContext>().ToSelf().InRequestScope();
kernel.Bind<ITestRepository>().To<TestRepository&...
Levy asked 28/2, 2014 at 19:38
2
Solved
I am using Ninjec, Ninject.Web.MVC and Ninject.Web.Common
When I start my mvc application I get this binding error:
What do I wrong in my binding?
Error activating DbConnection
No matching ...
Tore asked 12/2, 2013 at 19:46
2
Solved
I've got a simple MVC4 site which uses ASP.NET webAPI and also MVC pages.
I'd like to use Ninject DI for both controller types but I'm wondering how this can be done?
I've got Ninject DI working ...
Sniffy asked 3/2, 2014 at 5:36
1
Solved
I have a solution called MvcContacts with an MVC 4 project named MvcContacts and a unit testing project named MvcContacts.Test (created automatically when I checked the "enable unit testing" box in...
Interior asked 13/9, 2013 at 17:35
1
Solved
i have the following interfaces injected in Castle Windsor. how do i do the same in Ninject?
container.Register(
AllTypes.FromAssemblyNamed("Apps.Web")
.BasedOn(typeof(ICommandHandler<>))
...
Cavalryman asked 3/6, 2013 at 12:17
2
Solved
I'm using Ninject and the extensions EventBroker and DependencyCreation in an MVC 3 application. I've installed and am using the Ninject.MVC3 package and therefore the OnePerRequestModule.
I'm att...
Donkey asked 30/4, 2013 at 19:52
1
Solved
I'm using Ninject for DI and the Ninject.MVC3 extension within an MVC4 app, specifically version 3.0.0.6.
Reading the documentation on Ninject's wiki, it appears that the lifetime of objects creat...
Taking asked 3/4, 2013 at 3:22
1
Solved
I have a project called Infrastructure, which contains an interface IRepository
public interface IRepository<T>
{
/// <summary>
/// Adds the specified entity to the respository of ty...
Unguarded asked 14/1, 2013 at 8:46
3
I am using Ninject MVC3(version 3.0.0.0) for my ASP.Net MVC3 application installed using NuGet Package for Dependency Injection.
Here is the Global.asax change:
public class MvcApplication : Ninj...
Tagmemic asked 28/3, 2012 at 5:55
1
Solved
I have a single VS2010 solution with a Web.Api project and an MVC 3 project.
Both the Web.APi and the MVC project have their own App_Start with NinjectWebCommon in and their own bindings declared ...
Parette asked 3/1, 2013 at 11:58
1
Solved
I recently added both Ninject and Ninject.Web.Mvc to an existing ASP.NET MVC 4 web application. When browsing the site, I receive the following exception, seemingly at random:
[InvalidOperationE...
Wherefrom asked 5/12, 2012 at 21:20
1
Solved
I'm looking for the best way to incorporate a classic asmx web service into my MVC3 environment. I'd like the kernel/container to be shared between the two.
In the past with ASP.NET web forms I wa...
Touslesmois asked 11/9, 2012 at 21:13
1
I am using ninject to inject my repositories. I would like to have a my base class to be inherited but I cant because it has a constructor.
Base Controller:
namespace Orcha.Web.Controllers
{
pub...
Vandiver asked 9/8, 2012 at 21:35
2
Solved
I want to use RavenDB with ninject in my asp.net mvc3 project, Any idea how I have to configure this?
kernel.Bind<Raven.Client.IDocumentSession>()
.To<Raven.Client.Document.DocumentSto...
Welladvised asked 1/3, 2012 at 17:44
3
Solved
This may be stupid question, but I am looking at Ninject sources and don't see NInject registering its own controller factory. I also don't see any IControllerFactory class in Ninject.Web.Mvc assem...
Inflatable asked 16/2, 2011 at 16:6
1
© 2022 - 2024 — McMap. All rights reserved.