添加新Widget时在果园中的异常

时间:2014-07-15 12:22:58

标签: orchardcms orchardcms-1.8 orchard-modules

我正在Orchard中创建一个新的Calendar Widget。我添加了驱动程序,处理程序,模型和编辑器视图。 现在,我转到窗口小部件,添加窗口小部件,选择日历窗口小部件,我得到以下异常:

2014-07-15 13:58:02,972 [20] Orchard.Exceptions.DefaultExceptionPolicy - Default - An unexpected exception was caught
http://localhost/Orchard/Admin/Widgets/AddWidget?layerId=3&widgetType=CalendarWidget&zone=Content&returnUrl=%2FOrchard%2FAdmin%2FWidgets
System.InvalidCastException: Specified cast is not valid.
   at Orchard.ContentManagement.ContentCreateExtensions.New[T](IContentManager manager, String contentType) in c:\Workspaces\Orchard\src\Orchard\ContentManagement\ContentExtensions.cs:line 21
   at Orchard.Widgets.Controllers.AdminController.AddWidget(Int32 layerId, String widgetType, String zone, String returnUrl) in c:\Workspaces\Orchard\src\Orchard.Web\Modules\Orchard.Widgets\Controllers\AdminController.cs:line 151
   at lambda_method(Closure , ControllerBase , Object[] )
   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.Async.AsyncControllerActionInvoker.<BeginInvokeSynchronousActionMethod>b__39(IAsyncResult asyncResult, ActionInvocation innerInvokeState)
   at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`2.CallEndDelegate(IAsyncResult asyncResult)
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f()
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass48.<InvokeActionMethodFilterAsynchronouslyRecursive>b__41()
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass48.<InvokeActionMethodFilterAsynchronouslyRecursive>b__41()
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass48.<InvokeActionMethodFilterAsynchronouslyRecursive>b__41()
2014-07-15 13:59:32,478 [5] Orchard.Exceptions.DefaultExceptionPolicy - Default - An unexpected exception was caught

我先在哪里看?

由于

0 个答案:

没有答案