[InvalidOperationException: Multiple types were found that match the controller named 'category'. This can happen if the route that services this request ('{controller}/{action}/{id}') does not specify namespaces to search for a controller that matches the request. If this is the case, register this route by calling an overload of the 'MapRoute' method that takes a 'namespaces' parameter.
The request for 'category' has found the following matching controllers:
JJNNews.Controllers.CategoryController
JJNNews.Areas.Admin.Controllers.CategoryController]
System.Web.Mvc.DefaultControllerFactory.GetControllerTypeWithinNamespaces(RouteBase route, String controllerName, HashSet`1 namespaces) +240
System.Web.Mvc.DefaultControllerFactory.GetControllerType(RequestContext requestContext, String controllerName) +660
System.Web.Mvc.DefaultControllerFactory.System.Web.Mvc.IControllerFactory.GetControllerSessionBehavior(RequestContext requestContext, String controllerName) +57
System.Web.Mvc.MvcRouteHandler.GetSessionStateBehavior(RequestContext requestContext) +209
System.Web.Mvc.MvcRouteHandler.GetHttpHandler(RequestContext requestContext) +45
System.Web.Routing.UrlRoutingModule.PostResolveRequestCache(HttpContextBase context) +11833754
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +142
System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +75
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +93
|