IIS7 Web Routing With Classic Managed Pipeline Mode: Failed to Execute URL
My head has been turning around for days with the exception “Failed to Execute URL”.
I have web routing configured for IIS 6 in production using a wild card entry.
It works well and was a hustle free setup.
But on the development machine I was running IIS 7 in intergrated mode, still web routing worked perfectly Not until we decided to align production and development. That meant switching dev machines to use Classic Managed Pipeline mode from intergrated mode.
To allow System.Web.Routing to work in IIS 7 Classic mode I did the following steps:
- Go the Handler Mappings, add a new mapping with
Request Path: *
Name: wild card
Request Restrictions: Uncheck Invoke handler only if request is mapped to
- Click View ordered List
Use the Move Up and Move down buttons to ensure that the mapping created above is below the Static file mapping.
- Click View Unordered List
If you list is already unordered, that button will not appear.
Select the Static file Mapping and Click Edit
Change the Request Path to *.*
Change the Request restrictions such that for the Invoke handler only if request is mapped to: File is selected.
- Restart IIS
Browse the URL
On browsing the root URL, I get the following Error though when I browse the root + default document (e.g http://localhost/default.aspx) it works perfectly.
Am still trying to find why the default document module in this case is not working.