I am following this article to create a pluggable MVC application. Once ninject
has been installed, it says to add this:
var path = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "bin");
kernel.Bind(a => a.FromAssembliesInPath(path).SelectAllClasses().BindDefaultInterface());
to the RegisterServices
method in the NinjectWebCommon.cs
file, however, when I do this, I get the following error:
Cannot convert lambda expression to type 'System.Type[]' because it is not a delegate type.
This is fair enough, I understand the error but I'm not sure how to get around it. Has something changed in ninject to cause this error? I would appreciate some advice on how to proceed.