Error starting up Orchard command line host

Topics: Core, Customizing Orchard, Troubleshooting, Writing modules
Oct 11, 2011 at 4:43 AM

I got this error while I am trying to start Orchard command line

Method 'GetHomePage' in type 'Orchard.Core.Routable.Services.RoutableHomePagePro
vider' from assembly 'Orchard.Core, Version=1.2.41.0, Culture=neutral, PublicKey
Token=null' does not have an implementation.

Exception Details: System.TypeLoadException: Method 'GetHomePage' in type 'Orcha
rd.Core.Routable.Services.RoutableHomePageProvider' from assembly 'Orchard.Core,
 Version=1.2.41.0, Culture=neutral, PublicKeyToken=null' does not have an implem
entation.

Stack Trace:

[TypeLoadException: Method 'GetHomePage' in type 'Orchard.Core.Routable.Services
.RoutableHomePageProvider' from assembly 'Orchard.Core, Version=1.2.41.0, Cultur
e=neutral, PublicKeyToken=null' does not have an implementation.]
   at System.Reflection.RuntimeAssembly.GetExportedTypes(RuntimeAssembly assembl
y, ObjectHandleOnStack retTypes)
   at System.Reflection.RuntimeAssembly.GetExportedTypes()
   at Orchard.Environment.Extensions.Loaders.CoreExtensionLoader.LoadWorker(Exte
nsionDescriptor descriptor) in C:\Hazem\Mcom\Projects\MercurialSourceContorl\MVC
Orchard\Orchard\Environment\Extensions\Loaders\CoreExtensionLoader.cs:line 55
   at Orchard.Environment.Extensions.Loaders.ExtensionLoaderBase.Load(ExtensionD
escriptor descriptor) in C:\Hazem\Mcom\Projects\MercurialSourceContorl\MVCOrchar
d\Orchard\Environment\Extensions\Loaders\ExtensionLoaderBase.cs:line 37
   at Orchard.Environment.Extensions.ExtensionManager.BuildEntry(ExtensionDescri
ptor descriptor) in C:\Hazem\Mcom\Projects\MercurialSourceContorl\MVCOrchard\Orc
hard\Environment\Extensions\ExtensionManager.cs:line 160
   at Orchard.Environment.Extensions.ExtensionManager.<>c__DisplayClass1c.b__16(AcquireContext`1 ctx) in C:\Hazem\Mcom\Projects\MercurialSourceCont
orl\MVCOrchard\Orchard\Environment\Extensions\ExtensionManager.cs:line 110
   at Orchard.Caching.Cache`2.CreateEntry(TKey k, Func`2 acquire) in C:\Hazem\Mc
om\Projects\MercurialSourceContorl\MVCOrchard\Orchard\Caching\Cache.cs:line 57
   at Orchard.Caching.Cache`2.AddEntry(TKey k, Func`2 acquire) in C:\Hazem\Mcom\
Projects\MercurialSourceContorl\MVCOrchard\Orchard\Caching\Cache.cs:line 27
   at Orchard.Caching.Cache`2.<>c__DisplayClass2.b__0(TKey k) in C:\Hazem\M
com\Projects\MercurialSourceContorl\MVCOrchard\Orchard\Caching\Cache.cs:line 19
   at System.Collections.Concurrent.ConcurrentDictionary`2.AddOrUpdate(TKey key,
 Func`2 addValueFactory, Func`3 updateValueFactory)
   at Orchard.Caching.Cache`2.Get(TKey key, Func`2 acquire) in C:\Hazem\Mcom\Pro
jects\MercurialSourceContorl\MVCOrchard\Orchard\Caching\Cache.cs:line 17
   at Orchard.Caching.DefaultCacheManager.Get[TKey,TResult](TKey key, Func`2 acq
uire) in C:\Hazem\Mcom\Projects\MercurialSourceContorl\MVCOrchard\Orchard\Cachin
g\DefaultCacheManager.cs:line 33
   at Orchard.Environment.Extensions.ExtensionManager.LoadFeature(FeatureDescrip
tor featureDescriptor) in C:\Hazem\Mcom\Projects\MercurialSourceContorl\MVCOrcha
rd\Orchard\Environment\Extensions\ExtensionManager.cs:line 109

[OrchardException: Error while loading extension 'Settings'.]
   at Orchard.Environment.Extensions.ExtensionManager.LoadFeature(FeatureDescrip
tor featureDescriptor) in C:\Hazem\Mcom\Projects\MercurialSourceContorl\MVCOrcha
rd\Orchard\Environment\Extensions\ExtensionManager.cs:line 149
   at Orchard.Environment.Extensions.ExtensionManager.<>c__DisplayClass12.b__11(AcquireContext`1 ctx) in C:\Hazem\Mcom\Projects\MercurialSourceCon
torl\MVCOrchard\Orchard\Environment\Extensions\ExtensionManager.cs:line 95
   at Orchard.Caching.Cache`2.CreateEntry(TKey k, Func`2 acquire) in C:\Hazem\Mc
om\Projects\MercurialSourceContorl\MVCOrchard\Orchard\Caching\Cache.cs:line 57
   at Orchard.Caching.Cache`2.AddEntry(TKey k, Func`2 acquire) in C:\Hazem\Mcom\
Projects\MercurialSourceContorl\MVCOrchard\Orchard\Caching\Cache.cs:line 27
   at Orchard.Caching.Cache`2.<>c__DisplayClass2.b__0(TKey k) in C:\Hazem\M
com\Projects\MercurialSourceContorl\MVCOrchard\Orchard\Caching\Cache.cs:line 19
   at System.Collections.Concurrent.ConcurrentDictionary`2.AddOrUpdate(TKey key,
 Func`2 addValueFactory, Func`3 updateValueFactory)
   at Orchard.Caching.Cache`2.Get(TKey key, Func`2 acquire) in C:\Hazem\Mcom\Pro
jects\MercurialSourceContorl\MVCOrchard\Orchard\Caching\Cache.cs:line 17
   at Orchard.Caching.DefaultCacheManager.Get[TKey,TResult](TKey key, Func`2 acq
uire) in C:\Hazem\Mcom\Projects\MercurialSourceContorl\MVCOrchard\Orchard\Cachin
g\DefaultCacheManager.cs:line 33
   at Orchard.Environment.Extensions.ExtensionManager.b__10(Featur
eDescriptor descriptor) in C:\Hazem\Mcom\Projects\MercurialSourceContorl\MVCOrch
ard\Orchard\Environment\Extensions\ExtensionManager.cs:line 95
   at Orchard.Caching.DefaultParallelCacheContext.<>c__DisplayClass5`2.<>c__Disp
layClass7.b__1() in C:\Hazem\Mcom\Projects\MercurialSourceContorl
\MVCOrchard\Orchard\Caching\DefaultParallelCacheContext.cs:line 24
   at Orchard.Caching.DefaultParallelCacheContext.TaskWithAcquireContext`1.Execu
te() in C:\Hazem\Mcom\Projects\MercurialSourceContorl\MVCOrchard\Orchard\Caching
\DefaultParallelCacheContext.cs:line 71
   at Orchard.Caching.DefaultParallelCacheContext.b__2[T,TResult]
(ITask`1 task) in C:\Hazem\Mcom\Projects\MercurialSourceContorl\MVCOrchard\Orcha
rd\Caching\DefaultParallelCacheContext.cs:line 30
   at System.Linq.Parallel.ArrayMergeHelper`1.ToArrayElement(Int32 index)
   at System.Linq.Parallel.ForAllOperator`1.ForAllEnumerator`1.MoveNext(TInput&
currentElement, Int32& currentKey)
   at System.Linq.Parallel.ForAllSpoolingTask`2.SpoolingWork()
   at System.Linq.Parallel.SpoolingTaskBase.Work()
   at System.Linq.Parallel.QueryTask.BaseWork(Object unused)
   at System.Threading.Tasks.Task.Execute()

[AggregateException: One or more errors occurred.]
   at System.Linq.Parallel.QueryTaskGroupState.QueryEnd(Boolean userInitiatedDis
pose)
   at System.Linq.Parallel.MergeExecutor`1.Execute[TKey](PartitionedStream`2 par
titions, Boolean ignoreOutput, ParallelMergeOptions options, TaskScheduler taskS
cheduler, Boolean isOrdered, CancellationState cancellationState, Int32 queryId)

   at System.Linq.Parallel.PartitionedStreamMerger`1.Receive[TKey](PartitionedSt
ream`2 partitionedStream)
   at System.Linq.Parallel.ForAllOperator`1.WrapPartitionedStream[TKey](Partitio
nedStream`2 inputStream, IPartitionedStreamRecipient`1 recipient, Boolean prefer
Striping, QuerySettings settings)
   at System.Linq.Parallel.UnaryQueryOperator`2.UnaryQueryOperatorResults.ChildR
esultsRecipient.Receive[TKey](PartitionedStream`2 inputStream)
   at System.Linq.Parallel.ScanQueryOperator`1.ScanEnumerableQueryOperatorResult
s.GivePartitionedStream(IPartitionedStreamRecipient`1 recipient)
   at System.Linq.Parallel.UnaryQueryOperator`2.UnaryQueryOperatorResults.GivePa
rtitionedStream(IPartitionedStreamRecipient`1 recipient)
   at System.Linq.Parallel.QueryOperator`1.GetOpenedEnumerator(Nullable`1 mergeO
ptions, Boolean suppressOrder, Boolean forEffect, QuerySettings querySettings)
   at System.Linq.Parallel.ForAllOperator`1.RunSynchronously()
   at System.Linq.ParallelEnumerable.ForAll[TSource](ParallelQuery`1 source, Act
ion`1 action)
   at System.Linq.Parallel.ArrayMergeHelper`1.Execute()
   at System.Linq.Parallel.QueryOperator`1.ExecuteAndGetResultsAsArray()
   at Orchard.Caching.DefaultParallelCacheContext.RunInParallel[T,TResult](IEnum
erable`1 source, Func`2 selector) in C:\Hazem\Mcom\Projects\MercurialSourceConto
rl\MVCOrchard\Orchard\Caching\DefaultParallelCacheContext.cs:line 27
   at Orchard.Environment.Extensions.ExtensionManager.LoadFeatures(IEnumerable`1
 featureDescriptors) in C:\Hazem\Mcom\Projects\MercurialSourceContorl\MVCOrchard
\Orchard\Environment\Extensions\ExtensionManager.cs:line 93
   at Orchard.Environment.ShellBuilders.CompositionStrategy.Compose(ShellSetting
s settings, ShellDescriptor descriptor) in C:\Hazem\Mcom\Projects\MercurialSourc
eContorl\MVCOrchard\Orchard\Environment\ShellBuilders\CompositionStrategy.cs:lin
e 43
   at Orchard.Environment.ShellBuilders.ShellContextFactory.CreateSetupContext(S
hellSettings settings) in C:\Hazem\Mcom\Projects\MercurialSourceContorl\MVCOrcha
rd\Orchard\Environment\ShellBuilders\ShellContextFactory.cs:line 117
   at Orchard.Environment.DefaultOrchardHost.CreateSetupContext() in C:\Hazem\Mc
om\Projects\MercurialSourceContorl\MVCOrchard\Orchard\Environment\DefaultOrchard
Host.cs:line 139
   at Orchard.Environment.DefaultOrchardHost.CreateAndActivate() in C:\Hazem\Mco
m\Projects\MercurialSourceContorl\MVCOrchard\Orchard\Environment\DefaultOrchardH
ost.cs:line 120
   at Orchard.Environment.DefaultOrchardHost.BuildCurrent() in C:\Hazem\Mcom\Pro
jects\MercurialSourceContorl\MVCOrchard\Orchard\Environment\DefaultOrchardHost.c
s:line 97
   at Orchard.Environment.DefaultOrchardHost.Orchard.Environment.IOrchardHost.In
itialize() in C:\Hazem\Mcom\Projects\MercurialSourceContorl\MVCOrchard\Orchard\E
nvironment\DefaultOrchardHost.cs:line 64
   at Orchard.Commands.CommandHostAgent.CreateHostContainer() in C:\Hazem\Mcom\P
rojects\MercurialSourceContorl\MVCOrchard\Orchard\Commands\CommandHostAgent.cs:l
ine 189
   at Orchard.Commands.CommandHostAgent.StartHost(TextReader input, TextWriter o
utput) in C:\Hazem\Mcom\Projects\MercurialSourceContorl\MVCOrchard\Orchard\Comma
nds\CommandHostAgent.cs:line 116

--------------------------------------------------------------------------------


Failed to initialize Orchard session.
I'm using latest Orchard version and am just creating my own module and I want to enable it.

any suggestions?
Coordinator
Oct 11, 2011 at 6:46 AM

Update your modules: the version number there says 1.2. If you had the latest, it would be 1.3.

Oct 13, 2011 at 8:22 PM

Yup,Thanks It works now.