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


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM