The following code works just fine without FriendlyUrls turned on for an ASP.Net Web Forms project:
After spending way too much time on this, I found out that I needed to change this in App_Start/RouteConfig.cs:
//settings.AutoRedirectMode = RedirectMode.Permanent; settings.AutoRedirectMode = RedirectMode.Off;