Using Autofac to inject log4net into controller
问题 Trying to use Autofac to inject a log4net class into my controller, but I get the following exception: None of the constructors found with 'Public binding flags' on type 'MvcApplication6.Controllers.HomeController' can be invoked with the available services and parameters: Cannot resolve parameter 'log4net.ILog logger' of constructor 'Void .ctor(log4net.ILog)'. I have created a module to inject the Log class using the correct type: public class LogInjectionModule : Module { protected override