JohnWrensby
JohnWrensby

Reputation: 2852

ASP.Net MVC routing doesn't like parameter value of CON

If I simply generate an MVC Web App with VS2013. Then the only code change I make is to change the Contact action to accept the string param.

public ActionResult Contact(string id)

If I call it with http://localhost:55213/Home/Contact/CONN the parameter comes through fine. If I call it with http://localhost:55213/Home/Contact/CON I get a 404.

Upvotes: 0

Views: 99

Answers (1)

JohnWrensby
JohnWrensby

Reputation: 2852

Phil Haack documents the issue:

<httpRuntime targetFramework="4.5.1" relaxedUrlToFileSystemMapping="true" />

Phil Haack's Post

Upvotes: 1

Related Questions