How Can I Debug ASP Core Controller Registered, but Not Matching?
I have started a basic ASP Core MVC project in VS. Set up a basic test controller, and visited the endpoint; but I get a 404 response status page instead. (Screenshot of ASP Debug logs attached)
How can I further debug why my controller is registered (being found with AddControllers/MapControllers) but not being selected?
Controller code is below. Screenshots of outputting the app's known controller classes attached.
1 Reply
I'm just silly.
The attribute needed a blank string in the argument for HttpGet. It works now.