-2

I added a new Controller called "ListController" in to MVC project

if I write in browser Url http://localhost:1509/list everything works fine

But if I write in browser Url "http://localhost:1509/List" I get Erorr page

The only difference is if the letter L in the URL is capitalized or lowercase letter

What causes it

tereško
  • 58,060
  • 25
  • 98
  • 150

1 Answers1

0

Either case sensitive routing has been configured in the global.asax file without you knowing about it, or you are missing something.

Asp.net mvc routing urls are not case sensitive by default. "home", "HOME", "hOmE", etc.. are all the exact same as far as the mvc routing engine is concerned.

Here is the url where ScottGu explains the Asp.Net MVC url Routing Rules how they work.

ScottGu - ASP.Net MVC Framework: URL Routing

DavidEdwards
  • 593
  • 3
  • 12