unable to run locally orchard azure project ysod fresh off sources

巧了我就是萌 提交于 2019-12-11 07:40:27

问题


I am trying to run locally Orchard.Azure.CloudService project without any code changes to the official stable release 1.7.1 (58c21815). full source address is @ https://git01.codeplex.com/orchard .

Here is the steps to reproduce the error:

  1. launch the Orchard.Azure solution
  2. select "Debug" build
  3. click on press F5 start debugging
  4. the page will show "Server Error in '/' Application."

    None of the constructors found with 'Autofac.Core.Activators.Reflection.DefaultConstructorFinder' 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.IEnumerable`1[Orchard.Mvc.ModelBinders.IModelBinderProvider], Orchard.Mvc.ModelBinders.IModelBinderPublisher, Orchard.Tasks.ISweepGenerator)'. Source Error:

    Line 111: var shellScope = _shellContainerFactory.CreateContainer(settings, blueprint);

    Line 112:

    Line 113: return new ShellContext {

    Line 114: Settings = settings,

    Line 115: Descriptor = descriptor,

    Source File: c:\projects\orchard\src\Orchard\Environment\ShellBuilders\ShellContextFactory.cs Line: 113 `

    ... "

    Windows 8, x64
    VS2012.3 Azure SDK 2.1
    source code version hash: 58c21815
    

回答1:


It is a known issue that the solution can't run in the emulator. This is caused by the structure of the solution, and the fact the emulator doesn't run the cspack file. This script is used to copy modules and themes into the package for Azure deployment. When the emulator runs it simply mounts the Orchard.Azure.Web project which is almost empty and doesn't have all the files necessary to run the solution.

See this discussion on CodePlex for more detail.




回答2:


I don't believe you should be running that solution but the main Orchard solution.

ie, you don't need to develop specifically for Azure, just deploy for Azure.

I think ^_^



来源:https://stackoverflow.com/questions/19443077/unable-to-run-locally-orchard-azure-project-ysod-fresh-off-sources

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!