Installation failure

Jan 15, 2011 at 12:36 AM

Not sure why this happened. It appears releated to

Item #

16749

 

Method not found: 'Void System.Web.Helpers.Validation.ExcludeAll()'.

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: System.MissingMethodException: Method not found: 'Void System.Web.Helpers.Validation.ExcludeAll()'.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


Stack Trace:

[MissingMethodException: Method not found: 'Void System.Web.Helpers.Validation.ExcludeAll()'.]
   System.Web.Mvc.ControllerActionInvoker..ctor() +0
   Orchard.Mvc.Filters.FilterResolvingActionInvoker..ctor(IEnumerable`1 filterProviders) in d:\TeamCity\Projects\Orchard-1.x\src\Orchard\Mvc\Filters\FilterResolvingActionInvoker.cs:8

[TargetInvocationException: Exception has been thrown by the target of an invocation.]
   System.RuntimeMethodHandle._InvokeConstructor(IRuntimeMethodInfo method, Object[] args, SignatureStruct& signature, RuntimeType declaringType) +0
   System.RuntimeMethodHandle.InvokeConstructor(IRuntimeMethodInfo method, Object[] args, SignatureStruct signature, RuntimeType declaringType) +15
   System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +281
   Autofac.Core.Activators.Reflection.ConstructorParameterBinding.Instantiate() +102
   Autofac.Core.Activators.Reflection.ReflectionActivator.ActivateInstance(IComponentContext context, IEnumerable`1 parameters) +213
   Autofac.Core.Resolving.ComponentActivation.Activate(IEnumerable`1 parameters) +48
   Autofac.Core.Resolving.ComponentActivation.Execute(IEnumerable`1 parameters) +97
   Autofac.Core.Resolving.ResolveOperation.Resolve(ISharingLifetimeScope activationScope, IComponentRegistration registration, IEnumerable`1 parameters) +181
   Autofac.Core.Resolving.ComponentActivation.Resolve(IComponentRegistration registration, IEnumerable`1 parameters) +23
   Autofac.ResolutionExtensions.TryResolve(IComponentContext context, Service service, IEnumerable`1 parameters, Object& instance) +72
   Autofac.ResolutionExtensions.Resolve(IComponentContext context, Service service, IEnumerable`1 parameters) +87
   Orchard.Environment.ShellBuilders.<>c__DisplayClassb.<CreateContainer>b__a(IActivatingEventArgs`1 e) in d:\TeamCity\Projects\Orchard-1.x\src\Orchard\Environment\ShellBuilders\ShellContainerFactory.cs:105
   Autofac.Builder.<>c__DisplayClass8.<OnActivating>b__7(Object s, ActivatingEventArgs`1 e) +129
   System.EventHandler`1.Invoke(Object sender, TEventArgs e) +0
   Autofac.Core.Registration.ComponentRegistration.RaiseActivating(IComponentContext context, IEnumerable`1 parameters, Object& instance) +54
   Autofac.Core.Resolving.ComponentActivation.Activate(IEnumerable`1 parameters) +128
   Autofac.Core.Resolving.ComponentActivation.Execute(IEnumerable`1 parameters) +97
   Autofac.Core.Resolving.ResolveOperation.Resolve(ISharingLifetimeScope activationScope, IComponentRegistration registration, IEnumerable`1 parameters) +181
   Autofac.Core.Lifetime.LifetimeScope.Resolve(IComponentRegistration registration, IEnumerable`1 parameters) +91
   Autofac.ResolutionExtensions.TryResolve(IComponentContext context, Service service, IEnumerable`1 parameters, Object& instance) +72
   Autofac.ResolutionExtensions.TryResolve(IComponentContext context, Service service, Object& instance) +44
   Orchard.Mvc.OrchardControllerFactory.TryResolve(WorkContext workContext, Object serviceKey, T& instance) in d:\TeamCity\Projects\Orchard-1.x\src\Orchard\Mvc\OrchardControllerFactory.cs:19
   Orchard.Mvc.OrchardControllerFactory.GetControllerInstance(RequestContext requestContext, Type controllerType) in d:\TeamCity\Projects\Orchard-1.x\src\Orchard\Mvc\OrchardControllerFactory.cs:51
   System.Web.Mvc.DefaultControllerFactory.CreateController(RequestContext requestContext, String controllerName) +66
   System.Web.Mvc.MvcHandler.ProcessRequestInit(HttpContextBase httpContext, IController& controller, IControllerFactory& factory) +125
   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:\TeamCity\Projects\Orchard-1.x\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



Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1

<!-- [MissingMethodException]: Method not found: 'Void System.Web.Helpers.Validation.ExcludeAll()'. at System.Web.Mvc.ControllerActionInvoker..ctor() at Orchard.Mvc.Filters.FilterResolvingActionInvoker..ctor(IEnumerable`1 filterProviders) in d:\TeamCity\Projects\Orchard-1.x\src\Orchard\Mvc\Filters\FilterResolvingActionInvoker.cs:line 8 [TargetInvocationException]: Exception has been thrown by the target of an invocation. at System.RuntimeMethodHandle._InvokeConstructor(IRuntimeMethodInfo method, Object[] args, SignatureStruct& signature, RuntimeType declaringType) at System.RuntimeMethodHandle.InvokeConstructor(IRuntimeMethodInfo method, Object[] args, SignatureStruct signature, RuntimeType declaringType) at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at Autofac.Core.Activators.Reflection.ConstructorParameterBinding.Instantiate() at Autofac.Core.Activators.Reflection.ReflectionActivator.ActivateInstance(IComponentContext context, IEnumerable`1 parameters) at Autofac.Core.Resolving.ComponentActivation.Activate(IEnumerable`1 parameters) at Autofac.Core.Resolving.ComponentActivation.Execute(IEnumerable`1 parameters) at Autofac.Core.Resolving.ResolveOperation.Resolve(ISharingLifetimeScope activationScope, IComponentRegistration registration, IEnumerable`1 parameters) at Autofac.Core.Resolving.ComponentActivation.Resolve(IComponentRegistration registration, IEnumerable`1 parameters) at Autofac.ResolutionExtensions.TryResolve(IComponentContext context, Service service, IEnumerable`1 parameters, Object& instance) at Autofac.ResolutionExtensions.Resolve(IComponentContext context, Service service, IEnumerable`1 parameters) at Orchard.Environment.ShellBuilders.ShellContainerFactory.<>c__DisplayClassb.<CreateContainer>b__a(IActivatingEventArgs`1 e) in d:\TeamCity\Projects\Orchard-1.x\src\Orchard\Environment\ShellBuilders\ShellContainerFactory.cs:line 105 at Autofac.Builder.RegistrationBuilder`3.<>c__DisplayClass8.<OnActivating>b__7(Object s, ActivatingEventArgs`1 e) at System.EventHandler`1.Invoke(Object sender, TEventArgs e) at Autofac.Core.Registration.ComponentRegistration.RaiseActivating(IComponentContext context, IEnumerable`1 parameters, Object& instance) at Autofac.Core.Resolving.ComponentActivation.Activate(IEnumerable`1 parameters) at Autofac.Core.Resolving.ComponentActivation.Execute(IEnumerable`1 parameters) at Autofac.Core.Resolving.ResolveOperation.Resolve(ISharingLifetimeScope activationScope, IComponentRegistration registration, IEnumerable`1 parameters) at Autofac.Core.Lifetime.LifetimeScope.Resolve(IComponentRegistration registration, IEnumerable`1 parameters) at Autofac.ResolutionExtensions.TryResolve(IComponentContext context, Service service, IEnumerable`1 parameters, Object& instance) at Autofac.ResolutionExtensions.TryResolve(IComponentContext context, Service service, Object& instance) at Orchard.Mvc.OrchardControllerFactory.TryResolve[T](WorkContext workContext, Object serviceKey, T& instance) in d:\TeamCity\Projects\Orchard-1.x\src\Orchard\Mvc\OrchardControllerFactory.cs:line 19 at Orchard.Mvc.OrchardControllerFactory.GetControllerInstance(RequestContext requestContext, Type controllerType) in d:\TeamCity\Projects\Orchard-1.x\src\Orchard\Mvc\OrchardControllerFactory.cs:line 51 at System.Web.Mvc.DefaultControllerFactory.CreateController(RequestContext requestContext, String controllerName) at System.Web.Mvc.MvcHandler.ProcessRequestInit(HttpContextBase httpContext, IController& controller, IControllerFactory& factory) at System.Web.Mvc.MvcHandler.<>c__DisplayClass6.<BeginProcessRequest>b__2() at System.Web.Mvc.SecurityUtil.<>c__DisplayClassb`1.<ProcessInApplicationTrust>b__a() at System.Web.Mvc.SecurityUtil.<GetCallInAppTrustThunk>b__0(Action f) at System.Web.Mvc.SecurityUtil.ProcessInApplicationTrust(Action action) at System.Web.Mvc.SecurityUtil.ProcessInApplicationTrust[TResult](Func`1 func) at System.Web.Mvc.MvcHandler.BeginProcessRequest(HttpContextBase httpContext, AsyncCallback callback, Object state) at System.Web.Mvc.MvcHandler.BeginProcessRequest(HttpContext httpContext, AsyncCallback callback, Object state) at System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData) at Orchard.Mvc.Routes.ShellRoute.HttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData) in d:\TeamCity\Projects\Orchard-1.x\src\Orchard\Mvc\Routes\ShellRoute.cs:line 148 at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) -->
Jan 15, 2011 at 10:39 AM

Do you run it from Source code? If so, check if there is a %SourceCode%\lib\aspnetmvc\System.Web.WebPages.dll file. If there is no, it means that you don't install compoments support asp.net MVC in your environment. Orchard is based on asp.net MVC, so you need update your .net version to 4.0.

And if you are not .net developer, following the steps: http://www.orchardproject.net/docs/Installing-Orchard.ashx

 

 

Jan 15, 2011 at 2:44 PM

I would like to provide some additional details on this installation failure.

The installation was done with Web Platform Installer which reported success.

Today I went and loaded MVC3 as an independent download and then re-installed Orchard.

Now everything is working.

It would appear that Orchard is not properly specifing its dependicies as it it has a dependency on the release version of MVC3 and fails (no graceful dedregation here) on boxes with MVC3 RC.