2013-08-28 178 views
0

我在Azure網站上創建了一個新的果園網站。我想添加圖片庫功能到主頁。Orchard CMS上的簡單圖片庫

這是我做過什麼:

  1. 安裝了nwazet ZenGallery模塊
  2. 創建一個新的內容類型,並把它稱爲「禪廊式」
  3. 新增禪畫廊部分的「禪廊式「
  4. 從果園管理菜單中選擇窗口小部件
  5. 嘗試添加‘禪廊式’的AsideSecond區

然後我提出了以下錯誤信息 - 任何人都可以讓我知道我做錯了什麼?

Oops. Something went wrong ... sorry 
An unhandled exception has occurred and the request was terminated. Please refresh the page. If the error persists, go back 
Specified cast is not valid. 
System.InvalidCastException: Specified cast is not valid. at Orchard.ContentManagement.ContentCreateExtensions.New[T](IContentManager manager, String contentType) in c:\Orchard\src\Orchard\ContentManagement\ContentExtensions.cs:line 19 at Orchard.Widgets.Controllers.AdminController.AddWidget(Int32 layerId, String widgetType, String zone, String returnUrl) at lambda_method(Closure , ControllerBase , Object[]) at System.Web.Mvc.ActionMethodDispatcher.Execute(ControllerBase controller, Object[] parameters) at System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters) at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters) at System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClass13.<InvokeActionMethodWithFilters>b__10() at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) at System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClass13.<>c__DisplayClass15.<InvokeActionMethodWithFilters>b__12() at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) at System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClass13.<>c__DisplayClass15.<InvokeActionMethodWithFilters>b__12() at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) 

回答

1

看起來模塊未在Azure上運行。請在這裏提交一個bug:https://bitbucket.org/bleroy/nwazet.zengallery/issues/new

然而,Orchard 1.7出來的時候,我建議不要使用該模塊,而是使用爲多個圖像配置的內置媒體庫字段。

+0

好的,謝謝伯特蘭 –