Issue with Command Line - System.NotImplementedException

Topics: Administration, Core, Localization, Troubleshooting
Oct 22, 2015 at 3:28 PM
Hi people,

I get a message error when executing any command within command line tool since Orchard 1.9.1 where previously i had installed the Culture Picker Module. This is the message:

orchard> feature enable Orchard.CodeGeneration

Error executing command "feature enable Orchard.CodeGeneration"

No se puede implementar el método o la operación.

Exception Details: System.NotImplementedException: No se puede implementar el mé
todo o la operación.

Stack Trace:

[NotImplementedException: No se puede implementar el método o la operación.]
en System.Web.HttpRequestBase.get_AnonymousID()
en Orchard.CulturePicker.Services.CookieCultureSelector.EvaluateResult(HttpContextBase context)
en Orchard.CulturePicker.Services.CookieCultureSelector.GetCulture(HttpContextBase context)
en Orchard.Localization.Services.CurrentCultureWorkContext.<>c__DisplayClassa.<GetCurrentCulture>b__3(ICultureSelector c) en c:\Orchard-1.9.1\src\Orchard\Localization\Services\CurrentCultureWorkContext.cs:línea 29
en System.Linq.Enumerable.WhereSelectArrayIterator2.MoveNext()
en System.Linq.Enumerable.WhereEnumerableIterator
1.MoveNext()
en System.Linq.Buffer1..ctor(IEnumerable1 source)
en System.Linq.OrderedEnumerable1.<GetEnumerator>d__0.MoveNext()
en System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable
1 source, Func2 predicate)
en Orchard.Localization.Services.CurrentCultureWorkContext.GetCurrentCulture() en c:\Orchard-1.9.1\src\Orchard\Localization\Services\CurrentCultureWorkContext.cs:línea 2
en Orchard.Localization.Services.CurrentCultureWorkContext.Get[T](String name) en c:\Orchard-1.9.1\src\Orchard\Localization\Services\CurrentCultureWorkContext.cs:línea 19
en Orchard.Environment.WorkContextImplementation.<>c__DisplayClass7
1.<FindResolverForState>b__2(IWorkContextStateProvider wcsp) en c:\Orchard-1.9.1\src\Orchard\Environment\WorkContextImplementation.cs:línea 32
en System.Linq.Enumerable.WhereSelectArrayIterator2.MoveNext()
en System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable
1 source, Func2 predicate)
en Orchard.Environment.WorkContextImplementation.FindResolverForState[T](String name) en c:\Orchard-1.9.1\src\Orchard\Environment\WorkContextImplementation.cs:línea 32
en System.Collections.Concurrent.ConcurrentDictionary
2.GetOrAdd(TKey key, Func`2 valueFactory)
en Orchard.Environment.WorkContextImplementation.GetState[T](String name) en c:\Orchard-1.9.1\src\Orchard\Environment\WorkContextImplementation.cs:línea 27
en Orchard.WorkContext.get_CurrentCulture() en c:\Orchard-1.9.1\src\Orchard\WorkContext.cs:línea 74
en Orchard.Localization.Text.Get(String textHint, Object[] args) en c:\Orchard-1.9.1\src\Orchard\Localization\Text.cs:línea 29

en Orchard.Modules.Commands.FeatureCommands.Enable(String[] featureNames)

Addition, i disabled the "Code Generation Module" since the dashboard -> modules and then trying to enable this feature since the command line. I get this message:


orchard> codegen module Newsletter /IncludeInSolution: true

Error executing command "codegen module Newsletter true"

No se puede implementar el método o la operación.

Exception Details: System.NotImplementedException: No se puede implementar el mé
todo o la operación.

Stack Trace:

[NotImplementedException: No se puede implementar el método o la operación.]
en System.Web.HttpRequestBase.get_AnonymousID()
en Orchard.CulturePicker.Services.CookieCultureSelector.EvaluateResult(HttpContextBase context)
en Orchard.CulturePicker.Services.CookieCultureSelector.GetCulture(HttpContextBase context)
en Orchard.Localization.Services.CurrentCultureWorkContext.<>c__DisplayClassa.<GetCurrentCulture>b__3(ICultureSelector c) en c:\Orchard-1.9.1\src\Orchard\Localization\Services\CurrentCultureWorkContext.cs:línea 29
en System.Linq.Enumerable.WhereSelectArrayIterator2.MoveNext()
en System.Linq.Enumerable.WhereEnumerableIterator
1.MoveNext()
en System.Linq.Buffer1..ctor(IEnumerable1 source)
en System.Linq.OrderedEnumerable1.<GetEnumerator>d__0.MoveNext()
en System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable
1 source, Func2 predicate)
en Orchard.Localization.Services.CurrentCultureWorkContext.GetCurrentCulture() en c:\Orchard-1.9.1\src\Orchard\Localization\Services\CurrentCultureWorkContext.cs:línea 28
en Orchard.Localization.Services.CurrentCultureWorkContext.Get[T](String name) en c:\Orchard-1.9.1\src\Orchard\Localization\Services\CurrentCultureWorkContext.cs:línea 19
en Orchard.Environment.WorkContextImplementation.<>c__DisplayClass7
1.<FindResolverForState>b__2(IWorkContextStateProvider wcsp) en c:\Orchard-1.9.1\src\Orchard\Environment\WorkContextImplementation.cs:línea 32
en System.Linq.Enumerable.WhereSelectArrayIterator2.MoveNext()
en System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable
1 source, Func2 predicate)
en Orchard.Environment.WorkContextImplementation.FindResolverForState[T](String name) en c:\Orchard-1.9.1\src\Orchard\Environment\WorkContextImplementation.cs:línea 32
en System.Collections.Concurrent.ConcurrentDictionary
2.GetOrAdd(TKey key, Func2 valueFactory)
en Orchard.Environment.WorkContextImplementation.GetState[T](String name) enc:\Orchard-1.9.1\src\Orchard\Environment\WorkContextImplementation.cs:línea 27
en Orchard.WorkContext.get_CurrentCulture() en c:\Orchard-1.9.1\src\Orchard\WorkContext.cs:línea 74
en Orchard.Localization.Text.Get(String textHint, Object[] args) en c:\Orchard-1.9.1\src\Orchard\Localization\Text.cs:línea 29
en Orchard.Commands.DefaultOrchardCommandHandler.SetSwitchValue(KeyValuePair
2 commandSwitch) en c:\Orchard-1.9.1\src\Orchard\Commands\DefaultOrchardCommandHandler.cs:línea 45
en Orchard.Commands.DefaultOrchardCommandHandler.SetSwitchValues(CommandContext context) en c:\Orchard-1.9.1\src\Orchard\Commands\DefaultOrchardCommandHandler.cs:línea 24
en Orchard.Commands.DefaultOrchardCommandHandler.Execute(CommandContext context) en c:\Orchard-1.9.1\src\Orchard\Commands\DefaultOrchardCommandHandler.cs:línea 17
en Orchard.Commands.DefaultCommandManager.Execute(CommandParameters parameters) en c:\Orchard-1.9.1\src\Orchard\Commands\DefaultCommandManager.cs:línea 27

en Orchard.Commands.CommandHostAgent.RunCommand(TextReader input, TextWriteroutput, String tenant, String[] args, Dictionary`2 switches) en c:\Orchard-1.9.1\src\Orchard\Commands\CommandHostAgent.cs:línea 112

Where am i missing? Any idea?

Thanks a lot.
Developer
Oct 28, 2015 at 11:01 AM
Which Orchard version is this?