0
votes

I have Home controller in main Controllers folder and in Controllers folder of some Area. As result I get an error telling ASP.NET MVC can not find out which of Home controllers to use:

Multiple types were found that match the controller named 'home'. This can happen if the route that services this request ('') 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.

I found a similar two years old question. What is the current state of this feature? Should it work or may be I am doing something wrong?

1

1 Answers

0
votes

I suppose, it's not only T4MVC problem, but MVC in general. Phil Haack described it for MVC2, there wasn't much changes since then, afaik.

Btw, the error contains an exact suggestion what to do, did you follow it?