views:

25

answers:

1

Once the app is deployed to the web server, I type in an invalid route the mvc app just hangs and then displays a blank page.

On my local IIS, if I type an invalid route I get the exception: "System.Web.HttpException: The incoming request does not match any route.". I want the exception not the blank page.

Any ideas?

A: 

It was a missing HttpHandler in the config file. My local config had the hanlder the config on the webserver did not.

<add verb="*" path="*.mvc" validate="false" 
     type="System.Web.Mvc.MvcHttpHandler, System.Web.Mvc, 
           Version=2.0.0.0, Culture=neutral, 
           PublicKeyToken=31BF3856AD364E35"/>
McPatrick