This project is read-only.

Module enable error

Topics: Customizing Orchard
Dec 13, 2011 at 5:29 PM


When i try to enable module this error is raising

Sequence contains more than one matching element

Error is comming from this code  Shellstatecordinator.cs

// merge loaded feature information into ordered list
            var loadedEntries = orderedFeatureDescriptorsAndStates.Select(
                entry => new {
                    Feature = loadedFeatures.SingleOrDefault(f => f.Descriptor == entry.FeatureDescriptor)
                              ?? new Feature {
                                  Descriptor = entry.FeatureDescriptor,
                                  ExportedTypes = Enumerable.Empty<Type>()

Why this happen?

Dec 13, 2011 at 9:10 PM

Two features with the same name in two different modules maybe? What modules do you have?