Orchard CMS上的简单图像库

时间:2013-08-28 09:51:40

标签: orchardcms

我在Azure网站上创建了一个新的果园网站。我想在主页上添加图库功能。

这就是我所做的:

  1. 安装了nwazet ZenGallery模块
  2. 创建了一种新的内容类型,并将其命名为“Zen Gallery Type”
  3. 将Zen Gallery Part添加到'Zen Gallery Type'
  4. Orchard Admin菜单中的选定小部件
  5. 尝试将“Zen Gallery Type”添加到AsideSecond区域
  6. 然后我收到了以下错误消息 - 任何人都可以让我知道我做错了什么?

    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 个答案:

答案 0 :(得分:1)

看起来该模块未在Azure上运行。请在此处提交错误:https://bitbucket.org/bleroy/nwazet.zengallery/issues/new

然而,在Orchard 1.7中,我建议根本不使用该模块,而是使用为多个图像配置的内置媒体库字段。