c# - How do you resolve a Ninject dependency in the global file in ASP.NET? -
i using ninject , ninject.web assemblies web forms application. in global.asax file specify bindings so: public class global : ninjecthttpapplication { protected override ikernel createkernel() { ikernel kernel = new standardkernel(); // vendor briefs. kernel.bind<ivendorbriefrepository>().to<vendorbriefrepository>().inrequestscope(); kernel.bind<ivendorbriefcontroller>().to<vendorbriefcontroller>().inrequestscope(); // search services. kernel.bind<isearchservicescontroller>().to<searchservicescontroller>().inrequestscope(); kernel.bind<isearchservicesrepository>().to<searchservicesrepository>().inrequestscope(); // error logging kernel.bind<ierrorlogentrycontroller>().to<errorlogentrycontroller>().inrequestscope(); kernel.bind<ierrorlogentryrepository>().to<errorlogentryrepository>().inrequestscope(); retur...