I am working on an inherited application which makes use of NInject and nHibernate as part of an ASP.NET MVC (C#) application. Currently, I\'m looking at a problem with the auditing of modifications.
I get error The resource cannot be found. When I try to implement Ninject in my MVC-3 application.The problem appears to be coming from Global.asax during CreateKernel()
I am using MVC3 with Ninject, Dependencies in my controller are resolved with no problem. I have few services like localization, format provider and I want them to be开发者_如何学Go injected into view
I am using RequestScope of NInject in my application Bind<ITestClass>().To<TestClass>().InRequestScope();
I have used TransactionScope in the past with desktop client applications to roll back an incomplete multi-step transaction.That approach would seem unlikely to work in an Web application.
I\'m trying to specify a connection string dynamically based of the url using ninject. I\'m using the ninject.mvc nuget package that uses the webActivator.
i have followed the pattern on this site to hook up ninject and nhibernate to my asp.net-mvc3 site. Here is the code in my global.aspx.cs:
I am using NHibernate and ninject in ASP.Net MVC, using this page as a guide.One thing I think is weird is that, in this code (half way down the page)
Have a couple of questions regarding the latest version (2.2.1.4) of ninject. Was trying to Bind a Linq2sql DataContext to a concrete implementation InRequestScope (in a class library project)
hope this question is not all too stupid, I\'m trying to get a hold of more advanced programming principles and was thus trying to get used to Dependency Injection using Ninject.