Renaming a namespace in an ASP.NET MVC project: compile OK, Run is not OK

How to fix?

Several types were found that match the controller named "Home." This can happen if the route serving this request ('{controller} / {action} / {id}') does not define a namespace for finding the controller that matches the request. If so, register this route by overloading the MapRoute method, which accepts the namespaces parameter.

The following matching controllers were found in the query "Home": MyProject1.Controllers.HomeController MyProject2.Controllers.HomeController

+5
source share
3 answers

, . . MyProject1 MyProject2?

bin, , DLL . , , .

+15

, - "".

+2

, . , .

+1

All Articles