I write custom error pages for my MVC 5 web app. That's why I extended my web.config:
<customErrors mode="On" defaultRedirect="~/Error/" >
<error redirect="~/Error/?code=404" statusCode="404" />
</customErrors>
My Index
action is called properly but I want to know the called url that was not found. How can I get it?