Sequence不包含元素 - PostApplicationStartMethod

时间:2014-01-21 10:14:27

标签: ninject

我将此行称为kernel.Bind(a => a.FromAssembliesInPath(path).SelectAllClasses()。BindDefaultInterface());
在PostApplicationStartMethod事件之后调用此行,我在我的类顶部添加此行[assembly:WebActivator.PostApplicationStartMethod(typeof(PlugMvc4.App_Start.NinjectWebCommon),“CallMeAfterAppStart”)]
我得到一个问题“序列不包含元素”或

enter image description here

我在github https://github.com/alexandreba/mvcplugin上添加了代码,此问题已链接到主题NInject Load modules after the runtime is done

0 个答案:

没有答案