I have an application, that uses System.Web.Routing
and it works great on all my environments. The only issue is, that my staging environment needs the ".aspx" at the end or I will get a 404. All other environments do not require it. They all run in Classic for the Managed Pipeline Mode with v4.0 .NET framework. I keep comparing IIS settings, but I can't find any differences. I've even compared web.config
and machine.config
, but no differences there either. Anybody know what it could be?
Asked
Active
Viewed 164 times
0
-
Routing or Url Rewriting? Can we see code or web.config contents, please? – bluevector Jun 13 '12 at 15:36
-
Routing, here's the global file http://pastebin.com/h0wbwNYZ – RyanOC Jun 13 '12 at 15:49
1 Answers
1
Make sure you have this in your web.config (and normally you do want Integrated, unless you can't for some reason and jump through the hoops so it works under Classic).
<system.webServer>
<!-- omitted for brevity -->
<modules runAllManagedModulesForAllRequests="true"/>
</system.webServer>
runaAllManagedModulesForAllRequests
has gotten me a couple times in the past.

moribvndvs
- 42,191
- 11
- 135
- 149
-
Yeah, I have to use Classic. It works on most environments with classic though. – RyanOC Jun 13 '12 at 15:50