Link to home
Start Free TrialLog in
Avatar of jwebster77
jwebster77

asked on

MVC - When debugging it does not go to the Index Page - it goes to Localhost instead

Hello,
When debugging my MVC application always went to the Index page as the "opening screen". Now, for some reason it does not anymore. It instead goes to http://localhost:41073/  and asks me for login info.
It should really go to  http://localhost:41073/Tickets/Index , that is where it always went.

I have to manually type the second link to make the app work and go to the Index screen.

I cannot understand why. Please help. Thank you very much.


FYI, in case you want to know, this is in the RouteConfig which has not been changed:
routes.MapRoute(
                name: "Default",
                url: "{controller}/{action}/{id}",
                defaults: new { controller = "Tickets", action = "Index", id = UrlParameter.Optional }
            );

Open in new window

Avatar of Dustin Saunders
Dustin Saunders
Flag of United States of America image

Do you have authentication on your web app that redirects to login?  What does your ConfigureServices look like?
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.