无法在本地运行果园Azure项目YSOD断食源 [英] unable to run locally orchard azure project ysod fresh off sources

查看:181
本文介绍了无法在本地运行果园Azure项目YSOD断食源的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想没有任何code更改为官方稳定版1.7.1(58c21815)在本地运行Orchard.Azure.CloudService项目。完整的源地址是@ 的https://git01.$c$cplex.com/orchard

下面是重现该错误的步骤:


  1. 启动Orchard.Azure解决方案

  2. 选择调试建设

  3. 单击在preSS F5开始调试

  4. 该页面将显示在'/'应用程序的服务器错误。

    与类型'Autofac.Core.Activators.Reflection.DefaultConstructorFinder'里找到的构造函数无Orchard.Environment.DefaultOrchardShell可以与提供的服务和参数调用:无法解析参数'Orchard.Mvc.Routes.IRoutePublisher 构造routePublisher太虚.ctor(System.Func<$c$c>1[Autofac.Features.OwnedInstances.Owned1[Orchard.Environment.IOrchardShellEvents]], System.Collections.Generic.IEnumerable 1 [Orchard.Mvc.Routes.IRouteProvider],System.Collections.Generic.IEnumerable 1 [Orchard.WebApi.Routes.IHttpRouteProvider],果园.Mvc.Routes.IRoutePublisher,System.Collections.Generic.IEnumerable`1 [Orchard.Mvc.ModelBinders.IModelBinderProvider],Orchard.Mvc.ModelBinders.IModelBinderPublisher,Orchard.Tasks.ISweepGenerator)。
    源错误:

    111线中:var shellScope = _shellContainerFactory.CreateContainer(设置蓝图);

    112线:

    113线:返回新ShellContext {

    114线:设置=设置,

    115线:描述=描述符,

    源文件:C:\\项目\\果园的\\ src \\乌\\环境\\ ShellBuilders \\ ShellContextFactory.cs线:113
    `

    ......

      Windows 8中,64位
    VS2012.3的Azure SDK 2.1
    来源$ C ​​$ C版本的哈希:58c21815



解决方案

这是一个众所周知的问题,该解决方案不能在模拟器中运行。这是通过将溶液的结构引起的,而事实上仿真器不运行cspack文件。该脚本用于模块和主题复制到包Azure的部署。当模拟器运行时,它只是挂载Orchard.Azure.Web项目,这几乎是空的,没有所有运行解决方案所需的文件。

有关详细查看codePLEX这讨论

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
    

解决方案

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.

这篇关于无法在本地运行果园Azure项目YSOD断食源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆