Feature Not Displaying Enable/Disable Link

Topics: Customizing Orchard, Writing modules
Aug 8, 2013 at 9:38 PM
I've got a dead-simple feature written that's supposed to provision a very basic widget, but the Enable / Disable link does not appear next to the feature in the admin dashboard.

I'm sure I'm missing something really quite obvious.

When I attempt to enable the feature from the command line, I get an InvalidOperationException with the following stack trace:

[InvalidOperationException: Sequence contains no matching element]
at System.Linq.Enumerable.Single[TSource](IEnumerable1 source, Func2 predicate)
at Orchard.Environment.Features.FeatureManager.<>c__DisplayClass2d.<EnableFeature>b__20(String fId) in d:\Projects\or
chard\src\Orchard\Environment\Features\FeatureManager.cs:line 148
at System.Linq.Enumerable.WhereSelectListIterator2.MoveNext()
at System.Linq.Enumerable.WhereEnumerableIterator
1.MoveNext()
at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable1 source, Func2 keySelector, Func2 elemen
tSelector, IEqualityComparer
1 comparer)
at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable1 source, Func2 keySelector, Func2 elemen
tSelector)
at Orchard.Environment.Features.FeatureManager.<EnableFeature>b__1e(String currentFeatureId, IDictionary
2 featuresSt
ate) in d:\Projects\orchard\src\Orchard\Environment\Features\FeatureManager.cs:line 147
at Orchard.Environment.Features.FeatureManager.GetAffectedFeatures(String featureId, IDictionary2 features, Func3 g
etAffectedDependencies) in d:\Projects\orchard\src\Orchard\Environment\Features\FeatureManager.cs:line 195
at Orchard.Environment.Features.FeatureManager.EnableFeature(String featureId, IDictionary2 availableFeatures, Boole
an force) in d:\Projects\orchard\src\Orchard\Environment\Features\FeatureManager.cs:line 153
at Orchard.Environment.Features.FeatureManager.<>c__DisplayClass9.<EnableFeatures>b__4(String featureId) in d:\Projec
ts\orchard\src\Orchard\Environment\Features\FeatureManager.cs:line 73
at System.Linq.Enumerable.WhereSelectListIterator
2.MoveNext()
at System.Collections.Generic.List1..ctor(IEnumerable1 collection)
at System.Linq.Enumerable.ToList[TSource](IEnumerable1 source)
at Orchard.Environment.Features.FeatureManager.EnableFeatures(IEnumerable
1 featureIds, Boolean force) in d:\Projects
\orchard\src\Orchard\Environment\Features\FeatureManager.cs:line 72
at Orchard.Modules.Services.ModuleService.EnableFeatures(IEnumerable`1 featureIds, Boolean force)
at Orchard.Modules.Commands.FeatureCommands.Enable(String[] featureNames)
Aug 8, 2013 at 10:14 PM
Your module.txt seems to be badly formatted