Orchard で新しいカレンダー ウィジェットを作成しています。ドライバー、ハンドラー、モデル、およびエディター ビューを追加しました。ここで、ウィジェットに移動し、ウィジェットを追加し、カレンダー ウィジェットを選択すると、次の例外が発生します。
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
最初にどこを見ようか?
ありがとう