A bit more info on this error. Here's the stack trace.
==========================================
Stack Trace
==========================================
Autofac.Core.Lifetime.LifetimeScope.ResolveComponent(registration As IComponentRegistration, parameters As IEnumerable`1) (unknown file): N 00407
Autofac.ResolutionExtensions.ResolveService(context As IComponentContext, service As Service, parameters As IEnumerable`1) (unknown file): N 00168
Autofac.ResolutionExtensions.Resolve(context As IComponentContext, parameters As IEnumerable`1) (unknown file): N 00117
YAF.Core.YafContext.get_ServiceLocator() YafContext.cs: line 0294, col 05, IL 0001
YAF.Forum.get_ServiceLocator() Forum.cs: line 0325, col 05, IL 0006
YAF.Types.Interfaces.IServiceLocatorExtensions.Get(haveLocator As IHaveServiceLocator) IServiceLocatorExtensions.cs: line 0124, col 07, IL 0013
YAF.Forum..ctor() Forum.cs: line 0152, col 04, IL 0015
ASP.index_aspx.__BuildControlforum() index.aspx: line 0006, col 13, IL 0006
ASP.index_aspx.__BuildControlMainContent(__ctrl As Control) index.aspx: line 0005, col 13, IL 0020
System.Web.UI.MasterPage.InstantiateInContentPlaceHolder(contentPlaceHolder As Control, template As ITemplate) (unknown file): N 00125
ASP.globalmasterpages_myproject_master.__BuildControlMainContentPlaceHolder() myproject.Master: line 0116, col 13, IL 0095
ASP.globalmasterpages_myproject_master.__BuildControlContainerInterior() myproject.Master: line 0114, col 13, IL 0099
ASP.globalmasterpages_myproject_master.__BuildControlInteriorContentPlaceHolder() myproject.Master: line 0113, col 17, IL 0123
ASP.globalmasterpages_myproject_master.__BuildControlfrmMain() myproject.Master: line 0070, col 13, IL 0189
ASP.globalmasterpages_myproject_master.__BuildControlhtmBody() myproject.Master: line 0069, col 13, IL 0050
ASP.globalmasterpages_myproject_master.__BuildControlTree(__ctrl As globalmasterpages_myproject_master) myproject.Master: line 0001, col 13, IL 0052
ASP.globalmasterpages_myproject_master.FrameworkInitialize() App_Web_myproject.master.f98ccfed.nte8iojv.0.cs: line 0000, col 00, IL 0028
System.Web.UI.MasterPage.CreateMaster(owner As TemplateControl, context As HttpContext, masterPageFile As VirtualPath, contentTemplateCollection As IDictionary) (unknown file): N 01333
System.Web.UI.Page.ApplyMasterPage() (unknown file): N 00075
System.Web.UI.Page.PerformPreInit() (unknown file): N 00209
System.Web.UI.Page.ProcessRequestMain(includeStagesBeforeAsyncPoint As Boolean, includeStagesAfterAsyncPoint As Boolean) (unknown file): N 01397
if I implement IHaveServiceLocator and IRequireStartupServices on the page where I'm trying to place the control I get the same error but slightly different trace. Following is the stack trace:
==========================================
Stack Trace
==========================================
Autofac.Core.Lifetime.LifetimeScope.ResolveComponent(registration As IComponentRegistration, parameters As IEnumerable`1) (unknown file): N 00407
Autofac.ResolutionExtensions.ResolveService(context As IComponentContext, service As Service, parameters As IEnumerable`1) (unknown file): N 00168
YAF.Core.AutoFacServiceLocatorProvider.Get(serviceType As Type) AutoFacServiceLocatorProvider.cs: line 0160, col 07, IL 0019
YAF.Types.Interfaces.IServiceLocatorExtensions.Get(serviceLocator As IServiceLocator) IServiceLocatorExtensions.cs: line 0044, col 07, IL 0024
YAF.Types.Interfaces.IServiceLocatorExtensions.Get(haveLocator As IHaveServiceLocator) IServiceLocatorExtensions.cs: line 0124, col 07, IL 0019
YAF.Core.IHaveServiceLocatorExtensions.RunStartupServices(serviceLocator As IHaveServiceLocator) IHaveServiceLocatorExtensions.cs: line 0051, col 07, IL 0013
YAF.Core.Services.PageRequestLoadServices.RequestedPage_PreInit(sender As Object, e As EventArgs) PageRequestLoadServices.cs: line 0121, col 09, IL 0026
System.EventHandler.Invoke(sender As Object, e As EventArgs) (unknown file): N 00000
System.Web.UI.Page.PerformPreInit() (unknown file): N 00049
System.Web.UI.Page.ProcessRequestMain(includeStagesBeforeAsyncPoint As Boolean, includeStagesAfterAsyncPoint As Boolean) (unknown file): N 01397