Menu Query Link

Topics: Administration, Core, Troubleshooting
Sep 13, 2012 at 7:37 PM

Get the below when trying to add a query link to a new Menu, any ideas?

 

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:\Build\Orchard\src\Orchard\ContentManagement\ContentExtensions.cs:line 18 at Orchard.Core.Navigation.Controllers.AdminController.CreateMenuItem(String id, Int32 menuId, String returnUrl) in c:\Build\Orchard\src\Orchard.Web\Core\Navigation\Controllers\AdminController.cs:line 171 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__DisplayClass15.<InvokeActionMethodWithFilters>b__12() at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) at System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClass15.<>c__DisplayClass17.<InvokeActionMethodWithFilters>b__14() at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) at System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClass15.<>c__DisplayClass17.<InvokeActionMethodWithFilters>b__14() at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation)

Coordinator
Sep 13, 2012 at 7:39 PM

My guess would be that you had Advanced Menu on that site at some point.

Sep 13, 2012 at 7:41 PM

Yes I did. Not sure how to fix it?

Coordinator
Sep 13, 2012 at 7:42 PM

Obliterate all traces of it (tables, everything). Piotr may have better suggestions.