2013-10-18 38 views
1

我試圖在本地運行Orchard.Azure.CloudService項目,沒有任何代碼更改爲官方穩定版本1.7.1(58c21815)。完整的源地址是@https://git01.codeplex.com/orchard無法運行本地果園azure項目ysod新鮮源

這裏是重現錯誤的步驟:

  1. 推出Orchard.Azure解決方案
  2. 選擇 「Debug」 打造
  3. 點擊按F5開始調試
  4. 頁面會顯示「'/'應用程序中的服務器錯誤。」

    在'Orchard.Environment.DefaultOrchardShell'類型'Autofac.Core.Activators.Reflection.DefaultConstructorFinder'中找到的構造函數都不能用可用的服務和參數調用:無法解析參數'Orchard.Mvc.Routes。 IRoutePublisher routePublisher'構造函數'Void .ctor(System.Func 1[Autofac.Features.OwnedInstances.Owned 1 [Orchard.Environment.IOrchardShellEvents]],System.Collections.Generic.IEnumerable 1[Orchard.Mvc.Routes.IRouteProvider], System.Collections.Generic.IEnumerable 1 [Orchard.WebApi.Routes.IHttpRouteProvider],Orchard.Mvc.Routes.IRoutePublisher ,System.Collections.Generic.IEnumerable`1 [Orchard.Mvc.ModelBinders.IModelBinderProvider],Orchard.Mvc.ModelBinders.IModelBinderPublisher,Orchard.Tasks.ISweepGenerator)'。 源錯誤:

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

    線112:

    113行:返回新ShellContext {

    114行:設置=設置,

    線115:描述符=描述符,

    源文件:C:\ projects \ orchard \ src \ Orchard \ Environment \ ShellBuilders \ ShellContextFactory.cs行:113 `

    ...「

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

回答

0

我不相信你應該運行的解決方案,但主要果園的解決方案。

即,您不需要專門爲Azure開發,只需部署Azure。

我認爲^ _^

+1

如果是這樣的話,它如何調試Orchard Azure項目。由於存在與Azure相關的特定代碼行,因此它們必須可以調試。 –

1

這是一個已知的問題,該解決方案無法在模擬器中運行。這是由解決方案的結構以及仿真器不運行cspack文件引起的。此腳本用於將模塊和主題複製到Azure部署的包中。當模擬器運行時,它只需安裝Orchard.Azure.Web項目,該項目幾乎爲空,並且沒有運行解決方案所需的所有文件。

在CodePlex上查看此discussion瞭解更多詳情。