Should release DependencyResolver when stop NinjectMvcHttpApplicationPlugin
scott-xu opened this issue · 1 comments
scott-xu commented
Should set resolver to null in Stop function
DependencyResolver.SetResolver(null)
scott-xu commented
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