remove dead routes in asp.net mvc 2
- by loviji
hello, i have get a problem.
The request for 'Account' has found the following matching controllers:
uqs.Controllers.Admin.AccountController
MvcApplication1.Controllers.AccountController
I search in project by Visual Studio MvcApplication1.Controllers.AccountController to remove it. but can't find match.
So, I try to register a route:
routes.MapRoute(
"LogAccount", // Route name
"{controller}/{action}/{id}", // URL with parameters
new { controller = "AccountController", action = "LogOn", id = "" },
new string[] { "uqs.Controllers.Admin" } // Parameter defaults
);
But can't solve problem.
Multiple types were found that match
the controller named 'Account'.
How I can Remove MvcApplication1.Controllers.AccountController. or fix this problem?
Thanks.