Compile Exception

Topics: Installing Orchard, Troubleshooting
Jan 10, 2012 at 1:04 AM
Edited Jan 10, 2012 at 4:53 PM

On one computer, Orchard was setup and is working okay.

On another computer, an exact copy of the Orchard folders was copied from the first, and IIS setup to serve the folder. However, when trying to run the site, we get a compiler error.

The same error happens when trying to start "orchard.exe" in the bin folder.

Below is a log of that error.

Any suggestions?

 

Initializing Orchard session. (This might take a few seconds...)
log4net:ERROR XmlHierarchyConfigurator: Cannot find Property [rollingStyleFrequency] to set object on [Orchard.Logging.OrchardFileAppender]
log4net:ERROR XmlHierarchyConfigurator: Cannot find Property [rollingStyleFrequency] to set object on [Orchard.Logging.OrchardFileAppender]

Error starting up Orchard command line host
--------------------------------------------------------------------------------

c:\Data\Company\OrchardCMS\CompanySolutions\Modules\Orchard.Packaging\Services\PackageManager.cs(81): error CS0103: The name 'ExtensionFolders' does not exist in the current context

Exception Details: System.Web.HttpCompileException: c:\Data\Company\OrchardCMS\CompanySolutions\Modules\Orchard.Packaging\Services\PackageManager.cs(81): error CS0103: The name 'ExtensionFolders' does not exist in the current context

Stack Trace:

[HttpCompileException: c:\Data\Company\OrchardCMS\CompanySolutions\Modules\Orchard.Packaging\Services\PackageManager.cs(81): error CS0103: The name 'ExtensionFolders' does not exist in the current context]
   at System.Web.Compilation.BuildManager.PostProcessFoundBuildResult(BuildResult result, Boolean keyFromVPP, VirtualPath virtualPath)
   at System.Web.Compilation.BuildManager.GetBuildResultFromCacheInternal(String cacheKey, Boolean keyFromVPP, VirtualPath virtualPath, Int64 hashCode, Boolean ensureIsUpToDate)
   at System.Web.Compilation.BuildManager.GetVPathBuildResultFromCacheInternal(VirtualPath virtualPath, Boolean ensureIsUpToDate)
   at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
   at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
   at System.Web.Compilation.BuildManager.GetVPathBuildResult(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean ensureIsUpToDate)
   at System.Web.Compilation.BuildManager.GetCompiledAssembly(String virtualPath)
   at Orchard.Environment.Extensions.Loaders.DynamicExtensionLoader.LoadWorker(ExtensionDescriptor descriptor) in C:\Dev\Company\Orchard\CompanySolutions\src\src\Orchard\Environment\Extensions\Loaders\DynamicExtensionLoader.cs:line 192
   at Orchard.Environment.Extensions.ExtensionManager.BuildEntry(ExtensionDescriptor descriptor) in C:\Dev\Company\Orchard\CompanySolutions\src\src\Orchard\Environment\Extensions\ExtensionManager.cs:line 161
   at Orchard.Environment.Extensions.ExtensionManager.<>c__DisplayClass1c.<LoadFeature>b__16(AcquireContext`1 ctx) in C:\Dev\Company\Orchard\CompanySolutions\src\src\Orchard\Environment\Extensions\ExtensionManager.cs:line 110
   at Orchard.Caching.Cache`2.CreateEntry(TKey k, Func`2 acquire) in C:\Dev\Company\Orchard\CompanySolutions\src\src\Orchard\Caching\Cache.cs:line 57
   at Orchard.Caching.Cache`2.AddEntry(TKey k, Func`2 acquire) in C:\Dev\Company\Orchard\CompanySolutions\src\src\Orchard\Caching\Cache.cs:line 27
   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:\Dev\Company\Orchard\CompanySolutions\src\src\Orchard\Caching\Cache.cs:line 17
   at Orchard.Environment.Extensions.ExtensionManager.LoadFeature(FeatureDescriptor featureDescriptor) in C:\Dev\Company\Orchard\CompanySolutions\src\src\Orchard\Environment\Extensions\ExtensionManager.cs:line 109

[OrchardCoreException: Error compiling module "Orchard.Recipes" from file "/Modules/Orchard.Recipes/Orchard.Recipes.csproj":
c:\Data\Company\OrchardCMS\CompanySolutions\Modules\Orchard.Packaging\Services\PackageManager.cs(81): error CS0103: The name 'ExtensionFolders' does not exist in the current context]
   at Orchard.Environment.Extensions.Compilers.DefaultExtensionCompiler.Compile(CompileExtensionContext context) in C:\Dev\Company\Orchard\CompanySolutions\src\src\Orchard\Environment\Extensions\Compilers\DefaultExtensionCompiler.cs:line 105
   at System.Web.Compilation.AssemblyBuilder.AddBuildProvider(BuildProvider buildProvider)

[HttpParseException: Error compiling module "Orchard.Recipes" from file "/Modules/Orchard.Recipes/Orchard.Recipes.csproj":
c:\Data\Company\OrchardCMS\CompanySolutions\Modules\Orchard.Packaging\Services\PackageManager.cs(81): error CS0103: The name 'ExtensionFolders' does not exist in the current context]
   at System.Web.Compilation.AssemblyBuilder.AddBuildProvider(BuildProvider buildProvider)
   at System.Web.Compilation.BuildProvidersCompiler.ProcessBuildProviders()
   at System.Web.Compilation.BuildProvidersCompiler.PerformBuild()
   at System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath)
   at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
   at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
   at System.Web.Compilation.BuildManager.GetVPathBuildResult(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean ensureIsUpToDate)
   at System.Web.Compilation.BuildManager.GetCompiledAssembly(String virtualPath)
   at Orchard.Environment.Extensions.Loaders.DynamicExtensionLoader.LoadWorker(ExtensionDescriptor descriptor) in C:\Dev\Company\Orchard\CompanySolutions\src\src\Orchard\Environment\Extensions\Loaders\DynamicExtensionLoader.cs:line 192
   at Orchard.Environment.Extensions.ExtensionManager.BuildEntry(ExtensionDescriptor descriptor) in C:\Dev\Company\Orchard\CompanySolutions\src\src\Orchard\Environment\Extensions\ExtensionManager.cs:line 161
   at Orchard.Environment.Extensions.ExtensionManager.<>c__DisplayClass1c.<LoadFeature>b__16(AcquireContext`1 ctx) in C:\Dev\Company\Orchard\CompanySolutions\src\src\Orchard\Environment\Extensions\ExtensionManager.cs:line 110
   at Orchard.Caching.Cache`2.CreateEntry(TKey k, Func`2 acquire) in C:\Dev\Company\Orchard\CompanySolutions\src\src\Orchard\Caching\Cache.cs:line 57
   at Orchard.Caching.Cache`2.AddEntry(TKey k, Func`2 acquire) in C:\Dev\Company\Orchard\CompanySolutions\src\src\Orchard\Caching\Cache.cs:line 27
   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:\Dev\Company\Orchard\CompanySolutions\src\src\Orchard\Caching\Cache.cs:line 17
   at Orchard.Environment.Extensions.ExtensionManager.LoadFeature(FeatureDescriptor featureDescriptor) in C:\Dev\Company\Orchard\CompanySolutions\src\src\Orchard\Environment\Extensions\ExtensionManager.cs:line 109

[OrchardException: Error while loading extension 'Orchard.Recipes'.]
   at Orchard.Environment.Extensions.ExtensionManager.LoadFeature(FeatureDescriptor featureDescriptor) in C:\Dev\Company\Orchard\CompanySolutions\src\src\Orchard\Environment\Extensions\ExtensionManager.cs:line 145
   at Orchard.Caching.Cache`2.CreateEntry(TKey k, Func`2 acquire) in C:\Dev\Company\Orchard\CompanySolutions\src\src\Orchard\Caching\Cache.cs:line 57
   at Orchard.Caching.Cache`2.AddEntry(TKey k, Func`2 acquire) in C:\Dev\Company\Orchard\CompanySolutions\src\src\Orchard\Caching\Cache.cs:line 27
   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:\Dev\Company\Orchard\CompanySolutions\src\src\Orchard\Caching\Cache.cs:line 17
   at Orchard.Caching.DefaultParallelCacheContext.TaskWithAcquireContext`1.Execute() in C:\Dev\Company\Orchard\CompanySolutions\src\src\Orchard\Caching\DefaultParallelCacheContext.cs:line 71
   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 userInitiatedDispose)
   at System.Linq.Parallel.MergeExecutor`1.Execute[TKey](PartitionedStream`2 partitions, Boolean ignoreOutput, ParallelMergeOptions options, TaskScheduler taskScheduler, Boolean isOrdered, CancellationState cancellationState, Int32 queryId)
   at System.Linq.Parallel.PartitionedStreamMerger`1.Receive[TKey](PartitionedStream`2 partitionedStream)
   at System.Linq.Parallel.ForAllOperator`1.WrapPartitionedStream[TKey](PartitionedStream`2 inputStream, IPartitionedStreamRecipient`1 recipient, Boolean preferStriping, QuerySettings settings)
   at System.Linq.Parallel.UnaryQueryOperator`2.UnaryQueryOperatorResults.ChildResultsRecipient.Receive[TKey](PartitionedStream`2 inputStream)
   at System.Linq.Parallel.ScanQueryOperator`1.ScanEnumerableQueryOperatorResults.GivePartitionedStream(IPartitionedStreamRecipient`1 recipient)
   at System.Linq.Parallel.UnaryQueryOperator`2.UnaryQueryOperatorResults.GivePartitionedStream(IPartitionedStreamRecipient`1 recipient)
   at System.Linq.Parallel.QueryOperator`1.GetOpenedEnumerator(Nullable`1 mergeOptions, Boolean suppressOrder, Boolean forEffect, QuerySettings querySettings)
   at System.Linq.Parallel.ForAllOperator`1.RunSynchronously()
   at System.Linq.ParallelEnumerable.ForAll[TSource](ParallelQuery`1 source, Action`1 action)
   at System.Linq.Parallel.ArrayMergeHelper`1.Execute()
   at System.Linq.Parallel.QueryOperator`1.ExecuteAndGetResultsAsArray()
   at Orchard.Caching.DefaultParallelCacheContext.RunInParallel[T,TResult](IEnumerable`1 source, Func`2 selector) in C:\Dev\Company\Orchard\CompanySolutions\src\src\Orchard\Caching\DefaultParallelCacheContext.cs:line 27
   at Orchard.Environment.Extensions.ExtensionManager.LoadFeatures(IEnumerable`1 featureDescriptors) in C:\Dev\Company\Orchard\CompanySolutions\src\src\Orchard\Environment\Extensions\ExtensionManager.cs:line 93
   at Orchard.Environment.ShellBuilders.CompositionStrategy.Compose(ShellSettings settings, ShellDescriptor descriptor) in C:\Dev\Company\Orchard\CompanySolutions\src\src\Orchard\Environment\ShellBuilders\CompositionStrategy.cs:line 43
   at Orchard.Environment.ShellBuilders.ShellContextFactory.CreateShellContext(ShellSettings settings) in C:\Dev\Company\Orchard\CompanySolutions\src\src\Orchard\Environment\ShellBuilders\ShellContextFactory.cs:line 60
   at Orchard.Environment.DefaultOrchardHost.CreateAndActivateShells() in C:\Dev\Company\Orchard\CompanySolutions\src\src\Orchard\Environment\DefaultOrchardHost.cs:line 133
   at Orchard.Environment.DefaultOrchardHost.BuildCurrent() in C:\Dev\Company\Orchard\CompanySolutions\src\src\Orchard\Environment\DefaultOrchardHost.cs:line 103
   at Orchard.Environment.DefaultOrchardHost.Orchard.Environment.IOrchardHost.Initialize() in C:\Dev\Company\Orchard\CompanySolutions\src\src\Orchard\Environment\DefaultOrchardHost.cs:line 67
   at Orchard.Commands.CommandHostAgent.StartHost(TextReader input, TextWriter output) in C:\Dev\Company\Orchard\CompanySolutions\src\src\Orchard\Commands\CommandHostAgent.cs:line 116

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

Failed to initialize Orchard session.
Coordinator
Jan 17, 2012 at 8:26 PM

Missing .net 4.0 maybe?