Autofac的Autofac.Core.Activators.Reflection.DefaultConstructorFinder错误解决方案。

在使用Autofac的时候,不给力,看着例子来的,人家没问题,我就报了Autofac.Core.Activators.Reflection.DefaultConstructorFinder错误。

百般折腾,终于知道了方法。

解决方案:我是在Controller的构造函数里注入的,那么构造函数的权限一定要是Public。

至于为什么是这样,还不清楚,我会改天看下源代码瞧瞧,各位亲睡觉了。

posted @ 2013-11-29 23:29  nyth  阅读(2856)  评论(3编辑  收藏  举报