We help IT Professionals succeed at work.
Get Started
Troubleshooting Question

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

jwebster77 asked
Last Modified: 2020-10-16
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:
                name: "Default",
                url: "{controller}/{action}/{id}",
                defaults: new { controller = "Tickets", action = "Index", id = UrlParameter.Optional }
Watch Question
This question hasn't been answered yet.
While you wait, find out how you can maximize your capability with the most trusted tool in IT.
Explore More Ask a Question
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE