我将此行称为kernel.Bind(a => a.FromAssembliesInPath(path).SelectAllClasses()。BindDefaultInterface());
在PostApplicationStartMethod事件之后调用此行,我在我的类顶部添加此行[assembly:WebActivator.PostApplicationStartMethod(typeof(PlugMvc4.App_Start.NinjectWebCommon),“CallMeAfterAppStart”)]
我得到一个问题“序列不包含元素”或
我在github https://github.com/alexandreba/mvcplugin上添加了代码,此问题已链接到主题NInject Load modules after the runtime is done