Orchard 1.5.1 deployment failing from Visual Studio VS 2012

Topics: Installing Orchard, Troubleshooting
Sep 19, 2012 at 3:06 PM

Hi,

Is anyone having issues publishing Orchard 1.5.1 from Visual Studio 2012?

 

I can deploy projects fine from:

- Visual Studio 2010

- WebMatrix 2

 

I can also run the project fine in VS 2012 using either DEBUG or RELEASE configuration.

 

However if I deploy from VS 2012 I will get following error when running the site:

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.Owned`1[Orchard.Environment.IOrchardShellEvents]], System.Collections.Generic.IEnumerable`1[Orchard.Mvc.Routes.IRouteProvider], Orchard.Mvc.Routes.IRoutePublisher, System.Collections.Generic.IEnumerable`1[Orchard.Mvc.ModelBinders.IModelBinderProvider], Orchard.Mvc.ModelBinders.IModelBinderPublisher, Orchard.Tasks.ISweepGenerator)'.

Oct 23, 2012 at 7:35 AM

I am also encountering this issue and would be interested in any solutions. It seems like its popped up in a couple places before without a solid explanation, cause, or resolution. Looks like its tough to nail down because there are so many ways to deploy (ftp, web matrix, visual studio, cspkg, etc) and two things to deploy to (web sites vs web roles)

http://orchard.codeplex.com/discussions/398864

http://orchard.codeplex.com/discussions/347495

For reference, I'm using a slightly modified ClickToBuildAzurePackage.cmd to deploy to a staging instance of a Web Role. I (TheMonarch) just modified the build to take into account multiple service configurations. I don't think it matters because I had this problem before anyways.