Azure deployment

Topics: Core, Installing Orchard
May 8, 2013 at 11:25 AM
Hi,

I would like to ask help solving this error. The scenario is that I was building the solution through TFS using continuous integration connected to a cloud service in azure. The build is always successful but when i browse the site url, this error comes out. I am not sure of what the error is. I also tried to search similar errors but they were saying like adding the reference and modules but this is a fresh copy of orchard.
I also tried to make a different cloud service and tried a different approach of deploying by uploading the package and config file and this one works fine. I used the same solution and build it locally using clicktobuildazurepackage.cmd. This method shows orchard page correctly without errors but how come the first method does not work? Any ideas with this error?

stack trace :
[DependencyResolutionException: None of the constructors found with 'Public binding flags' on type 'Orchard.Environment.DefaultOrchardShell' can be invoked with the available services and parameters:
Cannot resolve parameter 'Orchard.Mvc.Routes.IRoutePublisher routePublisher' of constructor 'Void .ctor(System.Func1[Autofac.Features.OwnedInstances.Owned1[Orchard.Environment.IOrchardShellEvents]], System.Collections.Generic.IEnumerable1[Orchard.Mvc.Routes.IRouteProvider], System.Collections.Generic.IEnumerable1[Orchard.WebApi.Routes.IHttpRouteProvider], Orchard.Mvc.Routes.IRoutePublisher, System.Collections.Generic.IEnumerable1[Orchard.Mvc.ModelBinders.IModelBinderProvider], Orchard.Mvc.ModelBinders.IModelBinderPublisher, Orchard.Tasks.ISweepGenerator)'.]
Autofac.Core.Activators.Reflection.ReflectionActivator.ActivateInstance(IComponentContext context, IEnumerable
1 parameters) +463
Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable1 parameters) +89
Autofac.Core.Lifetime.LifetimeScope.GetOrCreateAndShare(Guid id, Func
1 creator) +122
Autofac.Core.Resolving.InstanceLookup.Execute() +164
Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, IComponentRegistration registration, IEnumerable1 parameters) +206
Autofac.Builder.<>c__DisplayClass1
1.<ForDelegate>b__0(IComponentContext c, IEnumerable1 p) +15
Autofac.Core.Activators.Delegate.DelegateActivator.ActivateInstance(IComponentContext context, IEnumerable
1 parameters) +30
Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable1 parameters) +89
Autofac.Core.Resolving.InstanceLookup.Execute() +181
Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, IComponentRegistration registration, IEnumerable
1 parameters) +206
Autofac.Core.Resolving.ResolveOperation.Execute(IComponentRegistration registration, IEnumerable1 parameters) +193
Autofac.Core.Lifetime.LifetimeScope.ResolveComponent(IComponentRegistration registration, IEnumerable
1 parameters) +193
Autofac.ResolutionExtensions.ResolveService(IComponentContext context, Service service, IEnumerable1 parameters) +168
Autofac.ResolutionExtensions.Resolve(IComponentContext context, IEnumerable
1 parameters) +117
Orchard.Environment.ShellBuilders.ShellContextFactory.CreateSetupContext(ShellSettings settings) in c:\a\src\Conductor\Source Code\src\Orchard\Environment\ShellBuilders\ShellContextFactory.cs:113
Orchard.Environment.DefaultOrchardHost.CreateSetupContext() in c:\a\src\Conductor\Source Code\src\Orchard\Environment\DefaultOrchardHost.cs:164
Orchard.Environment.DefaultOrchardHost.CreateAndActivateShells() in c:\a\src\Conductor\Source Code\src\Orchard\Environment\DefaultOrchardHost.cs:144
Orchard.Environment.DefaultOrchardHost.BuildCurrent() in c:\a\src\Conductor\Source Code\src\Orchard\Environment\DefaultOrchardHost.cs:104
Orchard.Environment.DefaultOrchardHost.Orchard.Environment.IOrchardHost.Initialize() in c:\a\src\Conductor\Source Code\src\Orchard\Environment\DefaultOrchardHost.cs:68
Orchard.Azure.Web.MvcApplication.Application_Start() in c:\a\src\Conductor\Source Code\src\Orchard.Azure\Orchard.Azure.Web\Global.asax.cs:40

[HttpException (0x80004005): None of the constructors found with 'Public binding flags' on type 'Orchard.Environment.DefaultOrchardShell' can be invoked with the available services and parameters:
Cannot resolve parameter 'Orchard.Mvc.Routes.IRoutePublisher routePublisher' of constructor 'Void .ctor(System.Func1[Autofac.Features.OwnedInstances.Owned1[Orchard.Environment.IOrchardShellEvents]], System.Collections.Generic.IEnumerable1[Orchard.Mvc.Routes.IRouteProvider], System.Collections.Generic.IEnumerable1[Orchard.WebApi.Routes.IHttpRouteProvider], Orchard.Mvc.Routes.IRoutePublisher, System.Collections.Generic.IEnumerable1[Orchard.Mvc.ModelBinders.IModelBinderProvider], Orchard.Mvc.ModelBinders.IModelBinderPublisher, Orchard.Tasks.ISweepGenerator)'.]
System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +4057733
System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +191
System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +352
System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +407
System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +375

[HttpException (0x80004005): None of the constructors found with 'Public binding flags' on type 'Orchard.Environment.DefaultOrchardShell' can be invoked with the available services and parameters:
Cannot resolve parameter 'Orchard.Mvc.Routes.IRoutePublisher routePublisher' of constructor 'Void .ctor(System.Func
1[Autofac.Features.OwnedInstances.Owned1[Orchard.Environment.IOrchardShellEvents]], System.Collections.Generic.IEnumerable1[Orchard.Mvc.Routes.IRouteProvider], System.Collections.Generic.IEnumerable1[Orchard.WebApi.Routes.IHttpRouteProvider], Orchard.Mvc.Routes.IRoutePublisher, System.Collections.Generic.IEnumerable1[Orchard.Mvc.ModelBinders.IModelBinderProvider], Orchard.Mvc.ModelBinders.IModelBinderPublisher, Orchard.Tasks.ISweepGenerator)'.]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +11702064
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +141
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +4870277


Thanks.