Vipul Patel

Vipul Patel

  • NA
  • 14
  • 1.9k

Problem in MVC Controller

Jul 3 2015 3:03 AM
I am currently working on asp.net mvc application and i take two Home controller one in root and second in Areas but when i debug the application the following error occurs.
 

Multiple types were found that match the controller named 'Home'. 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.

i set the MapRoute in Global.asax and Application_start method and also areaRegistration file
 
please give me accurate solution immediatly ...

Answers (2)