我有一个 ASP.NET MVC 4 应用程序,我正在尝试将其部署为 Azure 网站。我的应用程序在我的本地环境中运行良好。但是,当我将网站发布到 azure 时,我收到以下错误:
Multiple types were found that match the controller named 'Root'. 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.
The request for 'Views' has found the following matching controllers:
MyApp.HD.Web.Controllers.RootController
MyApp.Web.Controllers.RootController
为什么我会在 Azure 而不是本地收到此错误?我不知道如何绕过它。
谢谢