1

Closed

Disable Messaging cause the site crash (Build 3317)

description

  1. Log on the Orchard site as admin and go to admin page
  2. Click "Festures" and disable Messaging
    Expected: The feature Messaging is disabled
    Result: the site crashed as follows:
Server Error in '/' Application.
None of the constructors found with policy 'Orchard.Environment.AutofacUtil.DynamicProxy2.ConstructorFinderWrapper' on type 'Orchard.Security.Authorizer' can be invoked with the available services and parameters:
Constructor 'Void .ctor(Orchard.Security.IAuthorizationService, Orchard.UI.Notify.INotifier, Orchard.IWorkContextAccessor)' parameter resolution failed at parameter 'Orchard.Security.IAuthorizationService authorizationService'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: Autofac.Core.DependencyResolutionException: None of the constructors found with policy 'Orchard.Environment.AutofacUtil.DynamicProxy2.ConstructorFinderWrapper' on type 'Orchard.Security.Authorizer' can be invoked with the available services and parameters:
Constructor 'Void .ctor(Orchard.Security.IAuthorizationService, Orchard.UI.Notify.INotifier, Orchard.IWorkContextAccessor)' parameter resolution failed at parameter 'Orchard.Security.IAuthorizationService authorizationService'.

Source Error:

Line 40: var workContext = requestContext.GetWorkContext();
Line 41: if (TryResolve(workContext, serviceKey, out info)) {
Line 42: return (Type) info.Value.Metadata["ControllerType"];
Line 43: }
Line 44:


Source File: d:\Workspace\Orchard\src\Orchard\Mvc\OrchardControllerFactory.cs Line: 42

Stack Trace:

[DependencyResolutionException: None of the constructors found with policy 'Orchard.Environment.AutofacUtil.DynamicProxy2.ConstructorFinderWrapper' on type 'Orchard.Security.Authorizer' can be invoked with the available services and parameters:
Constructor 'Void .ctor(Orchard.Security.IAuthorizationService, Orchard.UI.Notify.INotifier, Orchard.IWorkContextAccessor)' parameter resolution failed at parameter 'Orchard.Security.IAuthorizationService authorizationService'.]
Autofac.Core.Activators.Reflection.ReflectionActivator.ActivateInstance(IComponentContext context, IEnumerable1 parameters) +309
Autofac.Core.Resolving.ComponentActivation.Activate(IEnumerable
1 parameters) +48
Autofac.Core.Resolving.<>c__DisplayClass1.<Execute>b__0() +12
Autofac.Core.Lifetime.LifetimeScope.GetOrCreateAndShare(Guid id, Func1 creator) +106
Autofac.Core.Resolving.ComponentActivation.Execute(IEnumerable
1 parameters) +188
Autofac.Core.Resolving.ResolveOperation.Resolve(ISharingLifetimeScope activationScope, IComponentRegistration registration, IEnumerable1 parameters) +181
Autofac.Core.Resolving.ComponentActivation.Resolve(IComponentRegistration registration, IEnumerable
1 parameters) +23
Autofac.Core.Registration.<>c__DisplayClass5.<RegistrationsFor>b__2(IComponentContext c, IEnumerable1 p) +19
Autofac.Builder.<>c__DisplayClass1
1.<ForDelegate>b__0(IComponentContext c, IEnumerable1 p) +17
Autofac.Core.Activators.Delegate.DelegateActivator.ActivateInstance(IComponentContext context, IEnumerable
1 parameters) +62
Autofac.Core.Resolving.ComponentActivation.Activate(IEnumerable1 parameters) +48
Autofac.Core.Resolving.ComponentActivation.Execute(IEnumerable
1 parameters) +97
Autofac.Core.Resolving.ResolveOperation.Resolve(ISharingLifetimeScope activationScope, IComponentRegistration registration, IEnumerable1 parameters) +181
Autofac.Core.Resolving.ComponentActivation.Resolve(IComponentRegistration registration, IEnumerable
1 parameters) +23
Autofac.Core.Activators.Reflection.<>c__DisplayClass2.<CanSupplyValue>b__0() +31
Autofac.Core.Activators.Reflection.ConstructorParameterBinding.Instantiate() +65
Autofac.Core.Activators.Reflection.ReflectionActivator.ActivateInstance(IComponentContext context, IEnumerable1 parameters) +213
Autofac.Core.Resolving.ComponentActivation.Activate(IEnumerable
1 parameters) +48
Autofac.Core.Resolving.<>c__DisplayClass1.<Execute>b__0() +12
Autofac.Core.Lifetime.LifetimeScope.GetOrCreateAndShare(Guid id, Func1 creator) +106
Autofac.Core.Resolving.ComponentActivation.Execute(IEnumerable
1 parameters) +188
Autofac.Core.Resolving.ResolveOperation.Resolve(ISharingLifetimeScope activationScope, IComponentRegistration registration, IEnumerable1 parameters) +181
Autofac.Core.Resolving.ComponentActivation.Resolve(IComponentRegistration registration, IEnumerable
1 parameters) +23
Autofac.Core.Registration.<>c__DisplayClass5.<RegistrationsFor>b__2(IComponentContext c, IEnumerable1 p) +19
Autofac.Builder.<>c__DisplayClass1
1.<ForDelegate>b__0(IComponentContext c, IEnumerable1 p) +17
Autofac.Core.Activators.Delegate.DelegateActivator.ActivateInstance(IComponentContext context, IEnumerable
1 parameters) +62
Autofac.Core.Resolving.ComponentActivation.Activate(IEnumerable1 parameters) +48
Autofac.Core.Resolving.ComponentActivation.Execute(IEnumerable
1 parameters) +97
Autofac.Core.Resolving.ResolveOperation.Resolve(ISharingLifetimeScope activationScope, IComponentRegistration registration, IEnumerable1 parameters) +181
Autofac.Core.Resolving.ComponentActivation.Resolve(IComponentRegistration registration, IEnumerable
1 parameters) +23
Autofac.Core.Activators.Reflection.<>c__DisplayClass2.<CanSupplyValue>b__0() +31
Autofac.Core.Activators.Reflection.ConstructorParameterBinding.Instantiate() +65
Autofac.Core.Activators.Reflection.ReflectionActivator.ActivateInstance(IComponentContext context, IEnumerable1 parameters) +213
Autofac.Core.Resolving.ComponentActivation.Activate(IEnumerable
1 parameters) +48
Autofac.Core.Resolving.ComponentActivation.Execute(IEnumerable1 parameters) +97
Autofac.Core.Resolving.ResolveOperation.Resolve(ISharingLifetimeScope activationScope, IComponentRegistration registration, IEnumerable
1 parameters) +181
Autofac.Core.Resolving.ComponentActivation.Resolve(IComponentRegistration registration, IEnumerable1 parameters) +23
Autofac.Core.Registration.<>c__DisplayClass5.<RegistrationsFor>b__2(IComponentContext c, IEnumerable
1 p) +19
Autofac.Builder.<>c__DisplayClass11.<ForDelegate>b__0(IComponentContext c, IEnumerable1 p) +17
Autofac.Core.Activators.Delegate.DelegateActivator.ActivateInstance(IComponentContext context, IEnumerable1 parameters) +62
Autofac.Core.Resolving.ComponentActivation.Activate(IEnumerable
1 parameters) +48
Autofac.Core.Resolving.ComponentActivation.Execute(IEnumerable1 parameters) +97
Autofac.Core.Resolving.ResolveOperation.Resolve(ISharingLifetimeScope activationScope, IComponentRegistration registration, IEnumerable
1 parameters) +181
Autofac.Core.Lifetime.LifetimeScope.Resolve(IComponentRegistration registration, IEnumerable1 parameters) +91
Autofac.Features.Metadata.<>c__DisplayClass4
1.<CreateMetaRegistration>b__3(IComponentContext c, IEnumerable1 p) +39
Autofac.Builder.<>c__DisplayClass1
1.<ForDelegate>b__0(IComponentContext c, IEnumerable1 p) +17
Autofac.Core.Activators.Delegate.DelegateActivator.ActivateInstance(IComponentContext context, IEnumerable
1 parameters) +62
Autofac.Core.Resolving.ComponentActivation.Activate(IEnumerable1 parameters) +48
Autofac.Core.Resolving.ComponentActivation.Execute(IEnumerable
1 parameters) +97
Autofac.Core.Resolving.ResolveOperation.Resolve(ISharingLifetimeScope activationScope, IComponentRegistration registration, IEnumerable1 parameters) +181
Autofac.Core.Lifetime.LifetimeScope.Resolve(IComponentRegistration registration, IEnumerable
1 parameters) +91
Autofac.Features.LazyDependencies.<>c__DisplayClass7.<CreateLazyRegistration>b__4() +23
System.Lazy1.CreateValue() +361
System.Lazy
1.LazyInitValue() +104
System.Lazy1.get_Value() +89
Orchard.Mvc.OrchardControllerFactory.GetControllerType(RequestContext requestContext, String controllerName) in d:\Workspace\Orchard\src\Orchard\Mvc\OrchardControllerFactory.cs:42
System.Web.Mvc.DefaultControllerFactory.CreateController(RequestContext requestContext, String controllerName) +53
System.Web.Mvc.MvcHandler.ProcessRequestInit(HttpContextBase httpContext, IController& controller, IControllerFactory& factory) +209
System.Web.Mvc.<>c__DisplayClass6.<BeginProcessRequest>b__2() +50
System.Web.Mvc.<>c__DisplayClassb
1.<ProcessInApplicationTrust>b__a() +13
System.Web.Mvc.SecurityUtil.<GetCallInAppTrustThunk>b__0(Action f) +7
System.Web.Mvc.SecurityUtil.ProcessInApplicationTrust(Action action) +23
System.Web.Mvc.SecurityUtil.ProcessInApplicationTrust(Func`1 func) +124
System.Web.Mvc.MvcHandler.BeginProcessRequest(HttpContextBase httpContext, AsyncCallback callback, Object state) +98
System.Web.Mvc.MvcHandler.BeginProcessRequest(HttpContext httpContext, AsyncCallback callback, Object state) +48
System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData) +16
Orchard.Mvc.Routes.HttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData) in d:\Workspace\Orchard\src\Orchard\Mvc\Routes\ShellRoute.cs:148
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +8841400
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +184
Closed Nov 19, 2010 at 7:58 AM by Yinhaixia
Fixed in build 3410

comments

akubich wrote Mar 13, 2012 at 6:28 AM

How I can find build 3410 or where I can find answer of this problem?

trentonadams wrote Nov 8, 2013 at 8:07 PM

I believe this error has been reintroduced