Don't disable the Feeds module

Topics: Administration, Troubleshooting
Apr 25, 2012 at 3:52 AM
Edited Apr 25, 2012 at 3:55 AM

If you disable the Feeds module you will immediately get the error below and the site will not work again.

I had to restore DB backup, changing the EnableState field of the ShellFeatureStateRecord back to "Up" did not help to recover, not sure where else the change took place in order to undo it.

Sorry for cross posting, not sure where I should have.

Exception:

None of the constructors found with 'Orchard.Environment.AutofacUtil.DynamicProxy2.ConstructorFinderWrapper' on type 'Orchard.Core.Containers.Drivers.ContainerPartDriver' can be invoked with the available services and parameters:
Cannot resolve parameter 'Orchard.Core.Feeds.IFeedManager feedManager' of constructor 'Void .ctor(Orchard.ContentManagement.MetaData.IContentDefinitionManager, Orchard.IOrchardServices, Orchard.Settings.ISiteService, Orchard.Core.Feeds.IFeedManager)'.

Location:

src\Orchard\ContentManagement\DefaultContentManager.cs

Línea 60: Línea 61: public IEnumerable<IContentHandler> Handlers { Línea 62: get { return _handlers.Value; } Línea 63: } Línea 64:

 Stack trace:

[DependencyResolutionException: None of the constructors found with 'Orchard.Environment.AutofacUtil.DynamicProxy2.ConstructorFinderWrapper' on type 'Orchard.Core.Containers.Drivers.ContainerPartDriver' can be invoked with the available services and parameters:
Cannot resolve parameter 'Orchard.Core.Feeds.IFeedManager feedManager' of constructor 'Void .ctor(Orchard.ContentManagement.MetaData.IContentDefinitionManager, Orchard.IOrchardServices, Orchard.Settings.ISiteService, Orchard.Core.Feeds.IFeedManager)'.]
   Autofac.Core.Activators.Reflection.ReflectionActivator.ActivateInstance(IComponentContext context, IEnumerable`1 parameters) +375
   Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable`1 parameters) +48
   Autofac.Core.Resolving.InstanceLookup.<Execute>b__6() +11
   Autofac.Core.Lifetime.LifetimeScope.GetOrCreateAndShare(Guid id, Func`1 creator) +106
   Autofac.Core.Resolving.InstanceLookup.Execute() +132
   Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, IComponentRegistration registration, IEnumerable`1 parameters) +164
   Autofac.Core.Resolving.InstanceLookup.ResolveComponent(IComponentRegistration registration, IEnumerable`1 parameters) +23
   Autofac.Features.Collections.<>c__DisplayClass6.<RegistrationsFor>b__1(IComponentRegistration cr) +17
   System.Linq.WhereSelectArrayIterator`2.MoveNext() +85
   System.Linq.Buffer`1..ctor(IEnumerable`1 source) +325
   System.Linq.Enumerable.ToArray(IEnumerable`1 source) +78
   Autofac.Features.Collections.<>c__DisplayClass4.<RegistrationsFor>b__0(IComponentContext c, IEnumerable`1 p) +135
   Autofac.Core.Activators.Delegate.DelegateActivator.ActivateInstance(IComponentContext context, IEnumerable`1 parameters) +30
   Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable`1 parameters) +48
   Autofac.Core.Resolving.InstanceLookup.Execute() +48
   Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, IComponentRegistration registration, IEnumerable`1 parameters) +164
   Autofac.Core.Resolving.InstanceLookup.ResolveComponent(IComponentRegistration registration, IEnumerable`1 parameters) +23
   Autofac.Core.Registration.<>c__DisplayClass8.<RegistrationsFor>b__3(IComponentContext c, IEnumerable`1 p) +19
   Autofac.Builder.<>c__DisplayClass1`1.<ForDelegate>b__0(IComponentContext c, IEnumerable`1 p) +17
   Autofac.Core.Activators.Delegate.DelegateActivator.ActivateInstance(IComponentContext context, IEnumerable`1 parameters) +30
   Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable`1 parameters) +48
   Autofac.Core.Resolving.InstanceLookup.Execute() +48
   Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, IComponentRegistration registration, IEnumerable`1 parameters) +164
   Autofac.Core.Resolving.InstanceLookup.ResolveComponent(IComponentRegistration registration, IEnumerable`1 parameters) +23
   Autofac.Core.Activators.Reflection.<>c__DisplayClass2.<CanSupplyValue>b__0() +31
   Autofac.Core.Activators.Reflection.ConstructorParameterBinding.Instantiate() +111
   Autofac.Core.Activators.Reflection.ReflectionActivator.ActivateInstance(IComponentContext context, IEnumerable`1 parameters) +182
   Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable`1 parameters) +48
   Autofac.Core.Resolving.InstanceLookup.<Execute>b__6() +11
   Autofac.Core.Lifetime.LifetimeScope.GetOrCreateAndShare(Guid id, Func`1 creator) +106
   Autofac.Core.Resolving.InstanceLookup.Execute() +132
   Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, IComponentRegistration registration, IEnumerable`1 parameters) +164
   Autofac.Core.Resolving.InstanceLookup.ResolveComponent(IComponentRegistration registration, IEnumerable`1 parameters) +23
   Autofac.Features.Collections.<>c__DisplayClass6.<RegistrationsFor>b__1(IComponentRegistration cr) +17
   System.Linq.WhereSelectArrayIterator`2.MoveNext() +85
   System.Linq.Buffer`1..ctor(IEnumerable`1 source) +217
   System.Linq.Enumerable.ToArray(IEnumerable`1 source) +78
   Autofac.Features.Collections.<>c__DisplayClass4.<RegistrationsFor>b__0(IComponentContext c, IEnumerable`1 p) +135
   Autofac.Core.Activators.Delegate.DelegateActivator.ActivateInstance(IComponentContext context, IEnumerable`1 parameters) +30
   Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable`1 parameters) +48
   Autofac.Core.Resolving.InstanceLookup.Execute() +48
   Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, IComponentRegistration registration, IEnumerable`1 parameters) +164
   Autofac.Core.Resolving.InstanceLookup.ResolveComponent(IComponentRegistration registration, IEnumerable`1 parameters) +23
   Autofac.Core.Registration.<>c__DisplayClass8.<RegistrationsFor>b__3(IComponentContext c, IEnumerable`1 p) +19
   Autofac.Builder.<>c__DisplayClass1`1.<ForDelegate>b__0(IComponentContext c, IEnumerable`1 p) +17
   Autofac.Core.Activators.Delegate.DelegateActivator.ActivateInstance(IComponentContext context, IEnumerable`1 parameters) +30
   Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable`1 parameters) +48
   Autofac.Core.Resolving.InstanceLookup.Execute() +48
   Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, IComponentRegistration registration, IEnumerable`1 parameters) +164
   Autofac.Core.Resolving.ResolveOperation.Execute(IComponentRegistration registration, IEnumerable`1 parameters) +70
   Autofac.Core.Lifetime.LifetimeScope.ResolveComponent(IComponentRegistration registration, IEnumerable`1 parameters) +155
   Autofac.Features.LazyDependencies.<>c__DisplayClass7.<CreateLazyRegistration>b__4() +23
   System.Lazy`1.CreateValue() +361
   System.Lazy`1.LazyInitValue() +104
   System.Lazy`1.get_Value() +89
   Orchard.ContentManagement.DefaultContentManager.get_Handlers() in C:\Users\Andres\Documents\My Web Sites\Federal Masonry\Orchard14\src\Orchard\ContentManagement\DefaultContentManager.cs:62
   Orchard.ContentManagement.DefaultContentManager.New(String contentType) in C:\Users\Andres\Documents\My Web Sites\Federal Masonry\Orchard14\src\Orchard\ContentManagement\DefaultContentManager.cs:83
   Orchard.ContentManagement.DefaultContentManager.Get(Int32 id, VersionOptions options, QueryHints hints) in C:\Users\Andres\Documents\My Web Sites\Federal Masonry\Orchard14\src\Orchard\ContentManagement\DefaultContentManager.cs:190
   Orchard.ContentManagement.DefaultContentManager.Get(Int32 id, VersionOptions options) in C:\Users\Andres\Documents\My Web Sites\Federal Masonry\Orchard14\src\Orchard\ContentManagement\DefaultContentManager.cs:111
   Orchard.ContentManagement.DefaultContentManager.Get(Int32 id) in C:\Users\Andres\Documents\My Web Sites\Federal Masonry\Orchard14\src\Orchard\ContentManagement\DefaultContentManager.cs:107
   Orchard.Security.Providers.FormsAuthenticationService.GetAuthenticatedUser() in C:\Users\Andres\Documents\My Web Sites\Federal Masonry\Orchard14\src\Orchard\Security\Providers\FormsAuthenticationService.cs:84
   Orchard.Security.CurrentUserWorkContext.<Get>b__0(WorkContext ctx) in C:\Users\Andres\Documents\My Web Sites\Federal Masonry\Orchard14\src\Orchard\Security\CurrentUserWorkContext.cs:13
   Orchard.Environment.<>c__DisplayClass7`1.<FindResolverForState>b__5() in C:\Users\Andres\Documents\My Web Sites\Federal Masonry\Orchard14\src\Orchard\Environment\WorkContextImplementation.cs:37
   Orchard.Environment.WorkContextImplementation.GetState(String name) in C:\Users\Andres\Documents\My Web Sites\Federal Masonry\Orchard14\src\Orchard\Environment\WorkContextImplementation.cs:28
   Orchard.WorkContext.get_CurrentUser() in C:\Users\Andres\Documents\My Web Sites\Federal Masonry\Orchard14\src\Orchard\WorkContext.cs:60
   Orchard.Security.Authorizer.Authorize(Permission permission, IContent content, LocalizedString message) in C:\Users\Andres\Documents\My Web Sites\Federal Masonry\Orchard14\src\Orchard\Security\Authorizer.cs:72
   Orchard.Security.Authorizer.Authorize(Permission permission) in C:\Users\Andres\Documents\My Web Sites\Federal Masonry\Orchard14\src\Orchard\Security\Authorizer.cs:60
   Orchard.Security.SecurityFilter.OnAuthorization(AuthorizationContext filterContext) in C:\Users\Andres\Documents\My Web Sites\Federal Masonry\Orchard14\src\Orchard\Security\SecurityFilter.cs:24
   System.Web.Mvc.ControllerActionInvoker.InvokeAuthorizationFilters(ControllerContext controllerContext, IList`1 filters, ActionDescriptor actionDescriptor) +102
   System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +343
   System.Web.Mvc.Controller.ExecuteCore() +116
   System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext) +97
   System.Web.Mvc.ControllerBase.System.Web.Mvc.IController.Execute(RequestContext requestContext) +10
   System.Web.Mvc.<>c__DisplayClassb.<BeginProcessRequest>b__5() +37
   System.Web.Mvc.Async.<>c__DisplayClass1.<MakeVoidDelegate>b__0() +21
   System.Web.Mvc.Async.<>c__DisplayClass8`1.<BeginSynchronous>b__7(IAsyncResult _) +12
   System.Web.Mvc.Async.WrappedAsyncResult`1.End() +62
   System.Web.Mvc.<>c__DisplayClasse.<EndProcessRequest>b__d() +50
   System.Web.Mvc.SecurityUtil.<GetCallInAppTrustThunk>b__0(Action f) +7
   System.Web.Mvc.SecurityUtil.ProcessInApplicationTrust(Action action) +22
   System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +60
   System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result) +9
   Orchard.Mvc.Routes.HttpAsyncHandler.EndProcessRequest(IAsyncResult result) in C:\Users\Andres\Documents\My Web Sites\Federal Masonry\Orchard14\src\Orchard\Mvc\Routes\ShellRoute.cs:147
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +8970061
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +184

Jul 10, 2014 at 1:48 PM
Edited Jul 10, 2014 at 1:48 PM
After enabling in the db:
delete cache.dat from App_Data