Visual Studio 2019 .Net Core 3.1 Kestrel does not map default ControllerRoute
See original GitHub issueThis issue has been moved from a ticket on Developer Community.
I created a Core 3.1 MVC Web Application with VS2019. I changed nothing and tried different launcher options. IIS Express worked, Docker worked and the third option named like my project does not find the home controller.
When I start with IIS Express or Docker the start route looks like this:
When I start with, I think it is called Kestrel, please correct me if I´m wrong:
https://localhost:5001/index.html
the Startup.cs looks like this:
app. UseEndpoints(endpoints => { endpoints. MapControllerRoute( name: "default", pattern: "{controller=Home}/{action=Index}/{id?}"); endpoints. MapRazorPages(); });
I search for a day now and even when I follow all the tutorials or create a new project it does not route to the home if not typed by hand. I tried different controller names, it`s the same, IIS and Docker work but not Kestrel.
I reinstalled Visual Studio because I know that it worked a week before, where I tried it the first time.
For me it looks like a bug, i´m not sure where to look elsewhere.
Original Comments
Visual Studio Feedback System on 12/9/2019, 03:37 AM:
We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.
Original Solutions
(no solutions)
Issue Analytics
- State:
- Created 4 years ago
- Comments:13 (7 by maintainers)
Top GitHub Comments
Yes, that looks like a browser redirect cache. Look at the details in the network tab when you do that.
This issue has been resolved and has not had any activity for 1 day. It will be closed for housekeeping purposes.
See our Issue Management Policies for more information.