training-kentico-k12
training-kentico-k12 copied to clipboard
404
oh man... now I am getting a 404 on the home page.
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.
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.