I have a ASP.NET 4.5 web app built using VS 2013. When I set debug to false in the web.config file, my aspx pages throw 404s in production (IIS 8.5). I publish using the VS publish option.
Is this an issue with a known cause or work-around?
EDIT:
I created a brand new empty ASP.NET app with no references and uploaded it with debug=false, and it loaded correctly. I then went ahead and added the Nuget packages and other settings that my other app had until I hit it. It's the FriendlyUrls.
After adding the FriendlyUrls package, it still worked OK. It wasn't until after I actually enabled it, by adding RouteConfig.RegisterRoutes(RouteTable.Routes);
to the Global.asax file that it threw me a 404 error. I then set debug=true, and sure enough it loaded fine.
Can anyone else reproduce this in IIS 8.5, or is this issue specific to my hosting environment?
Edit 2:
I just hit up a test website on Windows Azure with the FriendlyUrls enabled, and debug=false, and it worked like a charm. This is proving to be a RACKSPACE-Cloud-Site-only issue, unless the behavior is different on other IIS versions (which version are Azure websites currently running on?).
What would the core issue be though? What's the underlying configuration of FriendlyUrls that would conflict with debug=false in certain scenarios, and mostly, what would that scenario or IIS setting perhaps be (so I can bring this to Rackspace's attention)?
Update:
Rackspace believes it's a permission issue. More updates to come as I get more info.