0

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

这就是我所做的:

  1. 安装了 nwazet ZenGallery 模块
  2. 创建了一个新的内容类型并将其命名为“Zen Gallery Type”
  3. 将 Zen Gallery 部分添加到“Zen Gallery 类型”
  4. 从果园管理菜单中选择的小部件
  5. 试图将“Zen Gallery Type”添加到 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)
4

1 回答 1

1

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

但是,随着 Orchard 1.7 的发布,我建议根本不使用该模块,而是使用为多个图像配置的内置媒体库字段。

于 2013-08-28T18:11:09.650 回答