"The type LogWriter cannot be constructed." 我用的是 PostSharp 而 Entity Framework

"The type LogWriter cannot be constructed." I am used PostSharp And Entity Framework

无法构造类型 LogWriter。
您必须配置容器以提供此值。我用过 mvc4 PostSharp 和 Entity Framework.

在异常的 Stack Trace 中,我可以看到您正在使用 Unity 来实现依赖注入。

上面给出了解决方案 post Unity: The type LogWriter cannot be constructed