I got the error when requesting the page in http://localhost:56191/WebImages/index :
*An unhandled exception occurred while processing the request.*<br>
*AmbiguousMatchException: The request matched multiple endpoints. Matches:*
*WebApp.Controllers.WebImagesController.Index (WebApp)*<br>
*WebApp.Views.WebImagesController.Index (WebApp)*
*Microsoft.AspNetCore.Routing.Matching.DefaultEndpointSelector.ReportAmbiguity(CandidateState[] candidateState)*
Could this be because I ran due to update in the DB ?:
"Scaffold-DbContext "Server=Machinexx; Database=MyDBxx; Trusted_Connection=True;" Microsoft.EntityFrameworkCore.SqlServer -OutputDir Models -force"
CodeCaster was right. I got another Controller with the same name inside the View folder, and I have no idea how it got there.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.