Asp.NetMVC 迁移至Asp.NetCore. MVC 生成失败:Error: “AmbiguousMatchException: The request matched multiple endpoints.”

      最近迁移项目至Core,迁移后,生成测试,发现页面无法生成,

      提示 Error: “AmbiguousMatchException: The request matched multiple endpoints.”

      最后检查发现,是多建了一个Home 控制器,删除一个问题解决。

 

                  No, this has nothing to do with your database, it's just as the error says, you have two controllers with the same name. – CodeCaster Feb 28 at 8:42

                  https://stackoverflow.com/questions/60447971/error-ambiguousmatchexception-the-request-matched-multiple-endpoints

posted @ 2020-03-27 16:14  天為  阅读(3307)  评论(0编辑  收藏  举报