You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Both Ninject.Web.WebApi and Ninject.Web.Mvc register:
this.Kernel.Bind<HttpContext>().ToMethod(ctx => HttpContext.Current).InTransientScope();
this.Kernel.Bind<HttpContextBase>().ToMethod(ctx => new HttpContextWrapper(HttpContext.Current)).InTransientScope();
And when you try to resolve HttpContextBase Ninject thows System.InvalidOperationException with message Error activating HttpContextBase\r\nMore than one matching bindings are available.
The text was updated successfully, but these errors were encountered:
Both Ninject.Web.WebApi and Ninject.Web.Mvc register:
And when you try to resolve HttpContextBase Ninject thows System.InvalidOperationException with message Error activating HttpContextBase\r\nMore than one matching bindings are available.
The text was updated successfully, but these errors were encountered: