重命名ASP.NET MVC项目导致多种types的控制器错误

这发生在之前,我不记得我是如何解决它。 我重命名了一个MVC项目,然后做了一个ReSharper重构来更新命名空间。 现在,当我运行时,我运行该项目时出现以下错误:

Multiple types were found that match the controller named 'Dashboard'. 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 'Dashboard' has found the following matching controllers: EkmDomains.FrontEnd.Controllers.DashboardController EkmDomains.Web.Controllers.DashboardController 

我已经在旧EkmDomains.FrontEnd命名空间ocurrs解决scheme中的任何地方search,并用新的替代它,但无济于事…

有人有主意吗?

哈哈我只记得我上次是怎么做的 – 你必须从bin文件夹中手动删除旧的dll。 做一个干净的不会摆脱他们,因为一个干净的只删除的DLL匹配的项目名称 – 因此它留下的DLL与旧的项目名称。