Upgrade to Orchard 1.4.1 Error

Topics: Installing Orchard, Localization
Editor
May 8, 2012 at 1:03 AM

Has anyone had a problem when upgrading Orchard 1.4 to 1.4.1 if they have Localization enabled?

I am getting the following error:

Inheritance security rules violated by type: 'Orchard.Localization.Migrations'. Derived types must either match the security accessibility of the base type or be less accessible.

 

TypeLoadException: Inheritance security rules violated by type: 'Orchard.Localization.Migrations'. Derived types must either match the security accessibility of the base type or be less accessible.]
   System.Reflection.RuntimeAssembly.GetExportedTypes(RuntimeAssembly assembly, ObjectHandleOnStack retTypes) +0
   System.Reflection.RuntimeAssembly.GetExportedTypes() +122
   Orchard.Environment.Extensions.Loaders.DynamicExtensionLoader.LoadWorker(ExtensionDescriptor descriptor) in d:\Builds\OrchardFull\src\Orchard\Environment\Extensions\Loaders\DynamicExtensionLoader.cs:198
   Orchard.Environment.Extensions.ExtensionManager.BuildEntry(ExtensionDescriptor descriptor) in d:\Builds\OrchardFull\src\Orchard\Environment\Extensions\ExtensionManager.cs:161
   Orchard.Environment.Extensions.<>c__DisplayClass1c.<LoadFeature>b__16(AcquireContext`1 ctx) in d:\Builds\OrchardFull\src\Orchard\Environment\Extensions\ExtensionManager.cs:110
   Orchard.Caching.Cache`2.CreateEntry(TKey k, Func`2 acquire) in d:\Builds\OrchardFull\src\Orchard\Caching\Cache.cs:57
   Orchard.Caching.Cache`2.AddEntry(TKey k, Func`2 acquire) in d:\Builds\OrchardFull\src\Orchard\Caching\Cache.cs:27
   System.Collections.Concurrent.ConcurrentDictionary`2.AddOrUpdate(TKey key, Func`2 addValueFactory, Func`3 updateValueFactory) +162
   Orchard.Caching.Cache`2.Get(TKey key, Func`2 acquire) in d:\Builds\OrchardFull\src\Orchard\Caching\Cache.cs:17
   Orchard.Environment.Extensions.ExtensionManager.LoadFeature(FeatureDescriptor featureDescriptor) in d:\Builds\OrchardFull\src\Orchard\Environment\Extensions\ExtensionManager.cs:109

[OrchardException: Error while loading extension 'Orchard.Localization'.]
   Orchard.Environment.Extensions.ExtensionManager.LoadFeature(FeatureDescriptor featureDescriptor) in d:\Builds\OrchardFull\src\Orchard\Environment\Extensions\ExtensionManager.cs:145
   Orchard.Caching.Cache`2.CreateEntry(TKey k, Func`2 acquire) in d:\Builds\OrchardFull\src\Orchard\Caching\Cache.cs:57
   Orchard.Caching.Cache`2.AddEntry(TKey k, Func`2 acquire) in d:\Builds\OrchardFull\src\Orchard\Caching\Cache.cs:27
   System.Collections.Concurrent.ConcurrentDictionary`2.AddOrUpdate(TKey key, Func`2 addValueFactory, Func`3 updateValueFactory) +162
   Orchard.Caching.Cache`2.Get(TKey key, Func`2 acquire) in d:\Builds\OrchardFull\src\Orchard\Caching\Cache.cs:17
   Orchard.Caching.TaskWithAcquireContext`1.Execute() in d:\Builds\OrchardFull\src\Orchard\Caching\DefaultParallelCacheContext.cs:71
   System.Linq.Parallel.ArrayMergeHelper`1.ToArrayElement(Int32 index) +29
   System.Linq.Parallel.ForAllEnumerator`1.MoveNext(TInput& currentElement, Int32& currentKey) +147
   System.Linq.Parallel.ForAllSpoolingTask`2.SpoolingWork() +73
   System.Linq.Parallel.SpoolingTaskBase.Work() +4084174
   System.Linq.Parallel.QueryTask.BaseWork(Object unused) +129
   System.Threading.Tasks.Task.Execute() +155


Editor
May 8, 2012 at 2:19 AM

I got this to work after some finagling. I oddly had to try and install the Localization 1.4.1 module first, got a warning to upgrade, then upgraded to 1.4.1 (code base), and then installed the latest Localization module. Not sure what happened here, but all is good now.