training-kentico-k12 icon indicating copy to clipboard operation
training-kentico-k12 copied to clipboard

404

Open ecnerwal1234 opened this issue 5 years ago • 2 comments

oh man... now I am getting a 404 on the home page. 404

ecnerwal1234 avatar Jan 08 '20 18:01 ecnerwal1234

Hi @ecnerwal1234 , this can have a variety of reasons.

First, I'd double check the RouteConfig class, to see whether your DefaultWithCulture route is intact.

I'd also check whether the registration of RouteConfig is done right in Global.asax.cs.

Moreover, from your screenshot, I can see that:

  • your app is most probably deployed as a virtual application under the Default Web Site website,
  • a StaticFile handler was used to process the request.

Therefore, I'd also check whether IIS handler mappings are at their defaults, and whether the virtual application inherits those mappings or not (depending on whether you need non-standard mappings at the website level).

Hope that helps.

JanLenoch avatar Jan 09 '20 09:01 JanLenoch

Just a note: MVC routes are evaluated from top to bottom. If a route pattern matches the URL of the current request, that route will serve the request (unless a route constraint is in place).

Therefore, I'd also check whether your DefaultWithCulture route is not preceded by another route that has a URL pattern matching to the /en-US/Home URL.

JanLenoch avatar Jan 09 '20 09:01 JanLenoch