Error generating a new theme

Topics: Installing Orchard, Troubleshooting
Jun 10, 2014 at 11:51 AM
Edited Jun 10, 2014 at 11:51 AM
Hi


I've just deployed Orchard as a web service to Azure from the source following these instructions: http://docs.orchardproject.net/Documentation/Deploying-Orchard-to-Windows-Azure . The deployment and initial setup completed without a hitch however when I use the command line tool to generate a new theme I'm presented with the following error:
None of the constructors found with 'Orchard.Environment.AutofacUtil.DynamicProxy2.ConstructorFinderWrapper' on type 'Orchard.Settings.CurrentSiteWorkContext' can be invoked with the available services and parameters:
Cannot resolve parameter 'Orchard.Settings.ISiteService siteService' of constructor 'Void .ctor(Orchard.Settings.ISiteService)'.

Exception Details: Autofac.Core.DependencyResolutionException: None of the constructors found with 'Orchard.Environment.AutofacUtil.DynamicProxy2.ConstructorFinderWrapper' on type 'Orchard.Settings.CurrentSiteWorkContext' can be invoked with the available services and parameters:
Cannot resolve parameter 'Orchard.Settings.ISiteService siteService' of constructor 'Void .ctor(Orchard.Settings.ISiteService)'.

Stack Trace:

[DependencyResolutionException: None of the constructors found with 'Orchard.Environment.AutofacUtil.DynamicProxy2.ConstructorFinderWrapper' on type 'Orchard.Settings.CurrentSiteWorkContext' can be invoked with the available services and parameters:
Cannot resolve parameter 'Orchard.Settings.ISiteService siteService' of constructor 'Void .ctor(Orchard.Settings.ISiteService)'.]
   at Autofac.Core.Activators.Reflection.ReflectionActivator.ActivateInstance(IComponentContext context, IEnumerable`1 parameters)
   at Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable`1 parameters)
   at Autofac.Core.Lifetime.LifetimeScope.GetOrCreateAndShare(Guid id, Func`1 creator)
   at Autofac.Core.Resolving.InstanceLookup.Execute()
   at Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, IComponentRegistration registration, IEnumerable`1 parameters)
   at System.Linq.Enumerable.WhereSelectArrayIterator`2.MoveNext()
   at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
   at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
   at Autofac.Features.Collections.CollectionRegistrationSource.<>c__DisplayClass4.<RegistrationsFor>b__0(IComponentContext c, IEnumerable`1 p)
   at Autofac.Core.Activators.Delegate.DelegateActivator.ActivateInstance(IComponentContext context, IEnumerable`1 parameters)
   at Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable`1 parameters)
   at Autofac.Core.Resolving.InstanceLookup.Execute()
   at Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, IComponentRegistration registration, IEnumerable`1 parameters)
   at Autofac.Core.Activators.Delegate.DelegateActivator.ActivateInstance(IComponentContext context, IEnumerable`1 parameters)
   at Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable`1 parameters)
   at Autofac.Core.Resolving.InstanceLookup.Execute()
   at Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, IComponentRegistration registration, IEnumerable`
1 parameters)
   at Autofac.Core.Resolving.ResolveOperation.Execute(IComponentRegistration registration, IEnumerable`1 parameters)
   at Autofac.Core.Lifetime.LifetimeScope.ResolveComponent(IComponentRegistration registration, IEnumerable`1 parameters)
   at Autofac.ResolutionExtensions.ResolveService(IComponentContext context, Service service, IEnumerable`1 parameters)
   at Autofac.ResolutionExtensions.Resolve[TService](IComponentContext context,IEnumerable`1 parameters)
   at Orchard.Environment.WorkContextModule.<Load>b__0(IComponentContext ctx)
   at Autofac.Builder.RegistrationBuilder.<>c__DisplayClass1`1.<ForDelegate>b__0(IComponentContext c, IEnumerable`1 p)
   at Autofac.Core.Activators.Delegate.DelegateActivator.ActivateInstance(IComponentContext context, IEnumerable`1 parameters)
   at Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable`1 parameters)
   at Autofac.Core.Lifetime.LifetimeScope.GetOrCreateAndShare(Guid id, Func`1 creator)
   at Autofac.Core.Resolving.InstanceLookup.Execute()
   at Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, IComponentRegistration registration, IEnumerable`1 parameters)
   at Autofac.Core.Resolving.ResolveOperation.Execute(IComponentRegistration registration, IEnumerable`1 parameters)
   at Autofac.Core.Lifetime.LifetimeScope.ResolveComponent(IComponentRegistrationregistration, IEnumerable`1 parameters)
   at Autofac.ResolutionExtensions.ResolveService(IComponentContext context, Service service, IEnumerable`1 parameters)
   at Autofac.ResolutionExtensions.Resolve[TService](IComponentContext context,IEnumerable`1 parameters)
   at Orchard.Environment.WorkContextAccessor.ThreadStaticScopeImplementation..ctor(IEnumerable`1 events, ILifetimeScope lifetimeScope, ConcurrentDictionary`2 contexts, Object workContextKey)
   at Orchard.Environment.WorkContextAccessor.CreateWorkContextScope()
   at Orchard.Environment.ShellBuilders.ShellContextFactory.CreateShellContext(ShellSettings settings)
   at Orchard.Environment.DefaultOrchardHost.Orchard.Environment.IOrchardHost.CreateStandaloneEnvironment(ShellSettings shellSettings)
   at Orchard.Commands.CommandHostAgent.CreateStandaloneEnvironment(String tenant)
   at Orchard.Commands.CommandHostAgent.RunCommand(TextReader input, TextWriteroutput, String tenant, String[] args, Dictionary`2 switches)
On starting the command line tool I'm also presented with this:
[00003764:00002584, INFO ] Initializing runtime.

[00003764:00002584, ERROR] Output endpoint Orchard.Azure.Web:HttpIn not found

[00003764:00002584, ERROR] <- RuntimeGetEndpointTargetSet=0x80070490

[00003764:00002584, ERROR] Output endpoint Orchard.Azure.Web:Microsoft.WindowsAzure.Plugins.RemoteForwarder.RdpInput not found

[00003764:00002584, ERROR] <- RuntimeGetEndpointTargetSet=0x80070490

[00003764:00002584, INFO ] Initializing runtime.

[00003764:00002584, ERROR] Output endpoint Orchard.Azure.Web:HttpIn not found

[00003764:00002584, ERROR] <- RuntimeGetEndpointTargetSet=0x80070490

[00003764:00002584, ERROR] Output endpoint Orchard.Azure.Web:Microsoft.WindowsAzure.Plugins.RemoteForwarder.RdpInput not found

[00003764:00002584, ERROR] <- RuntimeGetEndpointTargetSet=0x80070490

Type "?" for help, "exit" to exit, "cls" to clear screen
any ideas how I can fix this?


Thanks
Developer
Jun 16, 2014 at 7:40 PM
Have you set up your site already? Did you try to run the Orchard.exe in Orchard.Web/bin (and not the Azure one)?