© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
C
C#
•
3y ago
•
13 replies
Pibbles
❔ ASP .NET Core Controller Default Route Issue
I have a controller
(TestController
) with an Index action method
.
The url I
'm using is
"
l
o
c
a
l
h
o
s
t
:8372
/Test
"
This returns a 404 error
If I add
[Route("[controller]")]
[Route("[controller]")]
the controller works as expected
.
I just created the application but I thought that
[Route("[controller]")]
[Route("[controller]")]
was the default route
. Is it not
?
C#
Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Recent Announcements
Similar Threads
❔ Asp.NET Core Controller and View Problem
C
C# / help
3y ago
Routing issue with ASP.Net Core
C
C# / help
4y ago
❔ ASP.NET to .net Core
C
C# / help
3y ago