'Autofac.ContainerBuilder' does not contain a definition for 'RegisterAssemblyTypes' and no extension method 'RegisterAssemblyTypes' accepting a first argument of type 'Autofac.ContainerBuilder' could be found (are you missing a using directive or an assembly reference?)
or
or....'Autofac.ContainerBuilder' does not contain a definition for 'RegisterInterface' and no extension method 'RegisterInterface' accepting a first argument of type 'Autofac.ContainerBuilder' could be found (are you missing a using directive or an assembly reference?)
then check that you are using "using Autofac" at the top of the file
if you don't include this then you won't get the necessary extension methods inside your file's visible namespaces.
You just need to add using Autofac.Integration.Mvc to have access to extension methods
ReplyDeleteadd using Autofac.Integration.Mvc to top of your page
ReplyDelete