I'm trying to debug in VS express 2013 with my MVC4 application.
In a view, I've added a nonsense link, such as <a href="blah.asf">link,</a> but I don't see the intended View when I click on the link, I see the IIS page.
I did this by creating an ErrorController which is
public class ErrorController : Controller { public ActionResult Index() { return View(); } } My view remains as the default, I didn't update it.
And my webconfig is
<customErrors mode="On" defaultRedirect="~/Error"> </customErrors> The routes are the default!
The IIS message is
HTTP Error 404.0 - Not Found If I type in http://localhost:53258/error/ then I see the page, suggesting that the mapping is fine.
What have I done wrong?
ErrorControllerthat is very much not the case.