I am working on an application in C# using MVC 3 that has areas in it, and when I attempt to debug, I get the following error:
Multiple types were found that match the controller nam开发者_如何学JAVAed 'Access'.
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 'Access' has found the following matching controllers:
FARM.Shared.Controllers.AccessController FARM.Shared.Controllers.AccessController
There is only one controller with that name, so why is it listing the same controller twice, and how do I fix it?
精彩评论