我在 Azure 网站上创建了一个新的果园网站。我想将图片库功能添加到主页。
这就是我所做的:
- 安装了 nwazet ZenGallery 模块
- 创建了一个新的内容类型并将其命名为“Zen Gallery Type”
- 将 Zen Gallery 部分添加到“Zen Gallery 类型”
- 从果园管理菜单中选择的小部件
- 试图将“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)