ninject/Ninject.Web.Mvc

Should release DependencyResolver when stop NinjectMvcHttpApplicationPlugin

scott-xu opened this issue · 1 comments

Just realized that null is not valid for SetResolver function.
Set it back to the DefaultDependencyResolver is a tricky way:

DependencyResolver.SetResolver(new DependencyResolver().InnerCurrent);

http://aspnetwebstack.codeplex.com/SourceControl/latest#src/System.Web.Mvc/DependencyResolver.cs