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