Error installing modules

Topics: Core, Francais (French), Installing Orchard, Troubleshooting, Writing modules
Jul 19, 2015 at 5:59 AM
Edited Jul 19, 2015 at 6:01 AM
I just created new fresh orchard1.9 instance in production server(due to lack of support for older versions). So i just installed one of my modules( created and tested in orchard1.9 localhost) and now everytime i try to install a module i get this annoying error(and this is not the only issue i have been thru, this is really annoying):

Oops. Something went wrong ... sorry

An unhandled exception has occurred and the request was terminated. Please refresh the page. If the error persists, go back
One or more errors occurred.
System.AggregateException: One or more errors occurred. ---> Orchard.OrchardException: Error while loading extension '{0}'. ---> System.IO.FileLoadException: Could not load file or assembly 'System.Web.Mvc, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) at System.Reflection.RuntimeAssembly.GetExportedTypes(RuntimeAssembly assembly, ObjectHandleOnStack retTypes) at System.Reflection.RuntimeAssembly.GetExportedTypes() at Orchard.Environment.Extensions.Loaders.PrecompiledExtensionLoader.LoadWorker(ExtensionDescriptor descriptor) in z:\Builds\work\bd725928c3da365b\src\Orchard\Environment\Extensions\Loaders\PrecompiledExtensionLoader.cs:line 232 at Orchard.Environment.Extensions.Loaders.ExtensionLoaderBase.Load(ExtensionDescriptor descriptor) in z:\Builds\work\bd725928c3da365b\src\Orchard\Environment\Extensions\Loaders\ExtensionLoaderBase.cs:line 37 at Orchard.Environment.Extensions.ExtensionManager.BuildEntry(ExtensionDescriptor descriptor) in z:\Builds\work\bd725928c3da365b\src\Orchard\Environment\Extensions\ExtensionManager.cs:line 160 at Orchard.Environment.Extensions.ExtensionManager.<>c__DisplayClass1c.<LoadFeature>b__16(AcquireContext1 ctx) in z:\Builds\work\bd725928c3da365b\src\Orchard\Environment\Extensions\ExtensionManager.cs:line 110 at Orchard.Caching.Cache2.CreateEntry(TKey k, Func2 acquire) in z:\Builds\work\bd725928c3da365b\src\Orchard\Caching\Cache.cs:line 57 at Orchard.Caching.Cache2.<>c__DisplayClass2.<Get>b__0(TKey k) in z:\Builds\work\bd725928c3da365b\src\Orchard\Caching\Cache.cs:line 19 at System.Collections.Concurrent.ConcurrentDictionary2.AddOrUpdate(TKey key, Func2 addValueFactory, Func3 updateValueFactory) at Orchard.Caching.Cache2.Get(TKey key, Func2 acquire) in z:\Builds\work\bd725928c3da365b\src\Orchard\Caching\Cache.cs:line 17 at Orchard.Caching.DefaultCacheManager.Get[TKey,TResult](TKey key, Func2 acquire) in z:\Builds\work\bd725928c3da365b\src\Orchard\Caching\DefaultCacheManager.cs:line 33 at Orchard.Environment.Extensions.ExtensionManager.LoadFeature(FeatureDescriptor featureDescriptor) in z:\Builds\work\bd725928c3da365b\src\Orchard\Environment\Extensions\ExtensionManager.cs:line 109 --- End of inner exception stack trace --- at Orchard.Environment.Extensions.ExtensionManager.LoadFeature(FeatureDescriptor featureDescriptor) in z:\Builds\work\bd725928c3da365b\src\Orchard\Environment\Extensions\ExtensionManager.cs:line 123 at Orchard.Environment.Extensions.ExtensionManager.<>c__DisplayClass12.<LoadFeatures>b__11(AcquireContext1 ctx) in z:\Builds\work\bd725928c3da365b\src\Orchard\Environment\Extensions\ExtensionManager.cs:line 95 at Orchard.Caching.Cache2.CreateEntry(TKey k, Func2 acquire) in z:\Builds\work\bd725928c3da365b\src\Orchard\Caching\Cache.cs:line 57 at Orchard.Caching.Cache2.<>c__DisplayClass2.<Get>b__0(TKey k) in z:\Builds\work\bd725928c3da365b\src\Orchard\Caching\Cache.cs:line 19 at System.Collections.Concurrent.ConcurrentDictionary2.AddOrUpdate(TKey key, Func2 addValueFactory, Func3 updateValueFactory) at Orchard.Caching.Cache2.Get(TKey key, Func2 acquire) in z:\Builds\work\bd725928c3da365b\src\Orchard\Caching\Cache.cs:line 17 at Orchard.Caching.DefaultCacheManager.Get[TKey,TResult](TKey key, Func2 acquire) in z:\Builds\work\bd725928c3da365b\src\Orchard\Caching\DefaultCacheManager.cs:line 33 at Orchard.Environment.Extensions.ExtensionManager.<LoadFeatures>b__10(FeatureDescriptor descriptor) in z:\Builds\work\bd725928c3da365b\src\Orchard\Environment\Extensions\ExtensionManager.cs:line 95 at Orchard.Caching.DefaultParallelCacheContext.<>c__DisplayClass52.<>c__DisplayClass7.<RunInParallel>b__1() in z:\Builds\work\bd725928c3da365b\src\Orchard\Caching\DefaultParallelCacheContext.cs:line 24 at Orchard.Caching.DefaultParallelCacheContext.TaskWithAcquireContext1.Execute() in z:\Builds\work\bd725928c3da365b\src\Orchard\Caching\DefaultParallelCacheContext.cs:line 71 at Orchard.Caching.DefaultParallelCacheContext.<RunInParallel>b__2[T,TResult](ITask1 task) in z:\Builds\work\bd725928c3da365b\src\Orchard\Caching\DefaultParallelCacheContext.cs:line 30 at System.Linq.Parallel.SelectQueryOperator2.SelectQueryOperatorResults.GetElement(Int32 index) at System.Linq.Parallel.ArrayMergeHelper1.ToArrayElement(Int32 index) at System.Linq.Parallel.ForAllOperator1.ForAllEnumerator1.MoveNext(TInput& currentElement, Int32& currentKey) at System.Linq.Parallel.ForAllSpoolingTask2.SpoolingWork() at System.Linq.Parallel.SpoolingTaskBase.Work() at System.Linq.Parallel.QueryTask.BaseWork(Object unused) at System.Linq.Parallel.QueryTask.<.cctor>b__0(Object o) at System.Threading.Tasks.Task.InnerInvoke() at System.Threading.Tasks.Task.Execute() --- End of inner exception stack trace --- at System.Linq.Parallel.QueryTaskGroupState.QueryEnd(Boolean userInitiatedDispose) at System.Linq.Parallel.SpoolingTask.SpoolForAll[TInputOutput,TIgnoreKey](QueryTaskGroupState groupState, PartitionedStream2 partitions, TaskScheduler taskScheduler) at System.Linq.Parallel.DefaultMergeHelper2.System.Linq.Parallel.IMergeHelper<TInputOutput>.Execute() at System.Linq.Parallel.MergeExecutor1.Execute[TKey](PartitionedStream2 partitions, Boolean ignoreOutput, ParallelMergeOptions options, TaskScheduler taskScheduler, Boolean isOrdered, CancellationState cancellationState, Int32 queryId) at System.Linq.Parallel.PartitionedStreamMerger1.Receive[TKey](PartitionedStream2 partitionedStream) at System.Linq.Parallel.ForAllOperator1.WrapPartitionedStream[TKey](PartitionedStream2 inputStream, IPartitionedStreamRecipient1 recipient, Boolean preferStriping, QuerySettings settings) at System.Linq.Parallel.UnaryQueryOperator2.UnaryQueryOperatorResults.ChildResultsRecipient.Receive[TKey](PartitionedStream2 inputStream) at System.Linq.Parallel.ScanQueryOperator1.ScanEnumerableQueryOperatorResults.GivePartitionedStream(IPartitionedStreamRecipient1 recipient) at System.Linq.Parallel.UnaryQueryOperator2.UnaryQueryOperatorResults.GivePartitionedStream(IPartitionedStreamRecipient1 recipient) at System.Linq.Parallel.QueryOperator1.GetOpenedEnumerator(Nullable1 mergeOptions, Boolean suppressOrder, Boolean forEffect, QuerySettings querySettings) at System.Linq.Parallel.ForAllOperator1.RunSynchronously() at System.Linq.ParallelEnumerable.ForAll[TSource](ParallelQuery1 source, Action1 action) at System.Linq.Parallel.ArrayMergeHelper1.Execute() at System.Linq.Parallel.QueryOperator1.ExecuteAndGetResultsAsArray() at System.Linq.ParallelEnumerable.ToArray[TSource](ParallelQuery1 source) at Orchard.Caching.DefaultParallelCacheContext.RunInParallel[T,TResult](IEnumerable1 source, Func2 selector) in z:\Builds\work\bd725928c3da365b\src\Orchard\Caching\DefaultParallelCacheContext.cs:line 27 at Orchard.Environment.Extensions.ExtensionManager.LoadFeatures(IEnumerable1 featureDescriptors) in z:\Builds\work\bd725928c3da365b\src\Orchard\Environment\Extensions\ExtensionManager.cs:line 93 at Orchard.Modules.Services.ModuleService.<GetAvailableFeatures>b__0(ExtensionDescriptor m) at System.Linq.Enumerable.<SelectManyIterator>d__142.MoveNext() at System.Linq.Enumerable.WhereSelectEnumerableIterator2.MoveNext() at System.Linq.Enumerable.WhereEnumerableIterator1.MoveNext() at System.Collections.Generic.List1..ctor(IEnumerable1 collection) at System.Linq.Enumerable.ToList[TSource](IEnumerable1 source) at Orchard.Modules.Controllers.AdminController.FeaturesPOST(FeaturesBulkAction bulkAction, IList1 featureIds, Nullable1 force) at lambda_method(Closure , ControllerBase , Object[] ) at System.Web.Mvc.ActionMethodDispatcher.Execute(ControllerBase controller, Object[] parameters) at System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary2 parameters) at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary2 parameters) at System.Web.Mvc.Async.AsyncControllerActionInvoker.<BeginInvokeSynchronousActionMethod>b__39(IAsyncResult asyncResult, ActionInvocation innerInvokeState) at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult2.CallEndDelegate(IAsyncResult asyncResult) at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResultBase1.End() at System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethod(IAsyncResult asyncResult) at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3d() at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f() at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f() at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f() at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass46.
Developer
Jul 19, 2015 at 7:44 PM
Did you download the source package, web package, or a clone from a specific branch?