remove dead routes in asp.net mvc 2

Posted by loviji on Stack Overflow See other posts from Stack Overflow or by loviji
Published on 2010-04-13T07:23:39Z Indexed on 2010/04/13 8:13 UTC
Read the original article Hit count: 553

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.

© Stack Overflow or respective owner

Related posts about asp.net-mvc-2

Related posts about asp.net-mvc